結果
問題 |
No.1579 New Type of Nim
|
ユーザー |
👑 |
提出日時 | 2022-01-01 21:50:20 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 151 bytes |
コンパイル時間 | 361 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-23 05:25:20 |
合計ジャッジ時間 | 1,215 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 31 |
ソースコード
a, b = io.read("*n", "*n") if a < b then a, b = b, a end if a % 2 == 1 then print(a == b and "Q" or "P") else print(a == b + 1 and "Q" or "P") end