Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
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: 76, Accepted users: 74
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:2129 today,12073178 total, since 2010-05-07