結果
問題 |
No.1764 Square
|
ユーザー |
👑 |
提出日時 | 2021-11-30 23:28:55 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 6,816 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-03 20:42:07 |
合計ジャッジ時間 | 777 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
local t = {} t[1] = {"A", "E"} t[2] = {"B"} t[3] = {"C"} t[4] = {"D"} local k = io.read("*n") for i = 0, k - 1 do local src = (i % 4) + 1 local dst = src == 4 and 1 or src + 1 local front = t[src][1] table.remove(t[src], 1) table.insert(t[dst], front) end for i = 1, 4 do print(table.concat(t[i])) end