結果
問題 |
No.1579 New Type of Nim
|
ユーザー |
![]() |
提出日時 | 2021-07-02 21:55:01 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 2,136 ms |
コンパイル使用メモリ | 74,156 KB |
実行使用メモリ | 41,612 KB |
最終ジャッジ日時 | 2024-06-29 11:27:11 |
合計ジャッジ時間 | 7,860 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 6 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); sc.close(); if (Math.abs(a - b) <= 1) { System.out.println("Q"); } else { System.out.println("P"); } } }