結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
hiroga
|
| 提出日時 | 2017-12-27 08:34:02 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 365 bytes |
| コンパイル時間 | 5,639 ms |
| コンパイル使用メモリ | 74,800 KB |
| 実行使用メモリ | 56,132 KB |
| 最終ジャッジ日時 | 2024-12-21 07:38:23 |
| 合計ジャッジ時間 | 5,733 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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