Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests [2]
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
蛇形矩阵
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 77, Accepted users: 75
Problem 11315 : No special judgement
Problem description
  按要求打印一个n x n的矩阵

Input
  输入n

Output
  输出 n x n的矩阵(0 < n < 10) 输出格式: C  printf(“%3d”, ....)
C++  cout << setw(3) << ...

Sample Input
1
2
3
Sample Output
  1
  1  2
  4  3
  1  2  3
  8  9  4
  7  6  5
Problem Source
  湖南师范大学第四届大学生计算机程序设计竞赛

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:7317 today,12401392 total, since 2010-05-07