結果

問題 No.2722 Kenken Fight
ユーザー maguroflymagurofly
提出日時 2024-04-12 21:37:48
言語 Ruby
(3.3.0)
結果
AC  
実行時間 169 ms / 2,000 ms
コード長 122 bytes
コンパイル時間 728 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 25,344 KB
最終ジャッジ日時 2024-04-12 21:37:52
合計ジャッジ時間 3,494 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
12,288 KB
testcase_01 AC 139 ms
20,352 KB
testcase_02 AC 162 ms
24,192 KB
testcase_03 AC 169 ms
25,344 KB
testcase_04 AC 164 ms
23,552 KB
testcase_05 AC 169 ms
25,088 KB
testcase_06 AC 169 ms
25,344 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

input = $<.read.split.map(&:to_i)
T = input.shift
ans = (0 ... T).map { input.shift == 1 ? "P" : "K" }
puts ans.join("\n")
0