結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
hiroga
|
| 提出日時 | 2017-12-27 08:35:44 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 156 ms / 5,000 ms |
| コード長 | 365 bytes |
| コンパイル時間 | 4,031 ms |
| コンパイル使用メモリ | 75,004 KB |
| 実行使用メモリ | 54,684 KB |
| 最終ジャッジ日時 | 2024-12-21 07:38:31 |
| 合計ジャッジ時間 | 6,265 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
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("Drew");
} else {
System.out.println("Lost");
}
}
}
hiroga