結果

問題 No.1764 Square
ユーザー kotatsugamekotatsugame
提出日時 2021-11-26 22:21:59
言語 Ruby
(3.2.2)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 103 bytes
コンパイル時間 451 ms
コンパイル使用メモリ 11,332 KB
実行使用メモリ 15,232 KB
最終ジャッジ日時 2023-09-12 05:04:08
合計ジャッジ時間 2,191 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,080 KB
testcase_01 AC 85 ms
15,200 KB
testcase_02 AC 87 ms
15,232 KB
testcase_03 AC 84 ms
15,096 KB
testcase_04 AC 84 ms
15,224 KB
testcase_05 AC 85 ms
15,196 KB
testcase_06 AC 84 ms
15,216 KB
testcase_07 AC 84 ms
15,204 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

q=[[?A,?E],[?B],[?C],[?D]]
gets.to_i.times{|i|
  c=q[i%4].shift
  q[(i+1)%4].push c
}
puts q.map &:join
0