結果

問題 No.401 数字の渦巻き
ユーザー hogeover30hogeover30
提出日時 2017-01-26 15:52:24
言語 Ruby
(3.3.0)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 103 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 11,228 KB
実行使用メモリ 15,524 KB
最終ジャッジ日時 2023-08-27 06:48:32
合計ジャッジ時間 3,761 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
15,280 KB
testcase_01 AC 77 ms
15,080 KB
testcase_02 AC 76 ms
15,244 KB
testcase_03 AC 76 ms
15,252 KB
testcase_04 AC 72 ms
15,060 KB
testcase_05 AC 72 ms
15,228 KB
testcase_06 AC 79 ms
15,240 KB
testcase_07 AC 75 ms
15,240 KB
testcase_08 AC 76 ms
15,112 KB
testcase_09 AC 76 ms
15,100 KB
testcase_10 AC 76 ms
15,064 KB
testcase_11 AC 76 ms
15,244 KB
testcase_12 AC 75 ms
15,376 KB
testcase_13 AC 74 ms
15,404 KB
testcase_14 AC 75 ms
15,300 KB
testcase_15 AC 74 ms
15,228 KB
testcase_16 AC 76 ms
15,340 KB
testcase_17 AC 75 ms
15,460 KB
testcase_18 AC 75 ms
15,248 KB
testcase_19 AC 75 ms
15,176 KB
testcase_20 AC 76 ms
15,316 KB
testcase_21 AC 76 ms
15,440 KB
testcase_22 AC 78 ms
15,224 KB
testcase_23 AC 77 ms
15,448 KB
testcase_24 AC 75 ms
15,344 KB
testcase_25 AC 77 ms
15,268 KB
testcase_26 AC 76 ms
15,456 KB
testcase_27 AC 74 ms
15,328 KB
testcase_28 AC 77 ms
15,524 KB
testcase_29 AC 78 ms
15,420 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

v,*a=1+n=gets.to_i**2;a=[a.map{"%03d"%v-=1}]+a.transpose.reverse while v>1;puts a.map{|l|l.reverse*' '}
0