結果
| 問題 | No.1579 New Type of Nim |
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2021-07-02 21:55:01 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 314 bytes |
| 記録 | |
| コンパイル時間 | 3,589 ms |
| コンパイル使用メモリ | 81,512 KB |
| 実行使用メモリ | 46,656 KB |
| 最終ジャッジ日時 | 2026-03-18 23:03:52 |
| 合計ジャッジ時間 | 6,471 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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");
}
}
}
ks2m