結果
| 問題 | No.264 じゃんけん |
| コンテスト | |
| ユーザー |
hiroga
|
| 提出日時 | 2017-12-27 08:34:02 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 365 bytes |
| 記録 | |
| コンパイル時間 | 4,525 ms |
| コンパイル使用メモリ | 85,716 KB |
| 実行使用メモリ | 46,652 KB |
| 最終ジャッジ日時 | 2026-05-28 00:15:59 |
| 合計ジャッジ時間 | 6,006 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 3 |
ソースコード
import java.util.Scanner;
public class No264{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int me = sc.nextInt();
int you = sc.nextInt();
int rs = you - me;
if (rs == 1 || rs == -2){
System.out.println("Won");
} else if (rs == 0 ){
System.out.println("Draw");
} else {
System.out.println("Lost");
}
}
}
hiroga