結果
問題 | No.2614 Delete ABC |
ユーザー |
👑 |
提出日時 | 2024-09-16 10:57:06 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 199 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-16 10:57:07 |
合計ジャッジ時間 | 615 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 |
ソースコード
p2 = "ABACBC" p3 = "ABACBACBC" q = io.read("*n") for iq = 1, q do n = io.read("*n") if n % 2 == 1 then io.write(p3) n = n - 3 end n = math.floor(n / 2) print(string.rep(p2, n)) end