結果

問題 No.839 Keep Distance and Nobody Explodes
ユーザー pluto77pluto77
提出日時 2019-06-20 16:29:40
言語 Python2
(2.7.18)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 541 ms
コンパイル使用メモリ 6,656 KB
実行使用メモリ 8,840 KB
最終ジャッジ日時 2023-08-22 18:23:58
合計ジャッジ時間 4,749 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
6,692 KB
testcase_01 AC 17 ms
6,772 KB
testcase_02 AC 17 ms
6,768 KB
testcase_03 AC 17 ms
6,804 KB
testcase_04 AC 17 ms
6,676 KB
testcase_05 AC 66 ms
8,596 KB
testcase_06 AC 66 ms
8,752 KB
testcase_07 AC 67 ms
8,660 KB
testcase_08 AC 68 ms
8,688 KB
testcase_09 AC 68 ms
8,840 KB
testcase_10 AC 61 ms
8,628 KB
testcase_11 AC 28 ms
7,200 KB
testcase_12 AC 33 ms
7,308 KB
testcase_13 AC 23 ms
6,832 KB
testcase_14 AC 23 ms
6,960 KB
testcase_15 AC 20 ms
6,856 KB
testcase_16 AC 19 ms
6,812 KB
testcase_17 AC 57 ms
8,316 KB
testcase_18 AC 19 ms
6,832 KB
testcase_19 AC 22 ms
6,808 KB
testcase_20 AC 44 ms
7,804 KB
testcase_21 AC 20 ms
6,856 KB
testcase_22 AC 53 ms
8,136 KB
testcase_23 AC 18 ms
6,656 KB
testcase_24 AC 44 ms
7,856 KB
testcase_25 AC 21 ms
6,816 KB
testcase_26 AC 25 ms
6,872 KB
testcase_27 AC 27 ms
7,056 KB
testcase_28 AC 25 ms
6,936 KB
testcase_29 AC 41 ms
7,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki837

n=int(raw_input())
a=[[0 for i in xrange(300)] for j in xrange(300)]
k=1
for i in xrange(n/2):
 for j in xrange(n/2):
  a[i][j]=k
  k+=1
  a[i+n/2][j+n/2]=k
  k+=1

for i in xrange(n/2):
 for j in xrange(n/2-1,-1,-1):
  a[i][j+n/2]=k
  k+=1
  a[i+n/2][j]=k
  k+=1

for i in xrange(n):
 for j in xrange(n):
  print a[i][j],
 print
0