結果
問題 | No.264 じゃんけん |
ユーザー | yu_017 |
提出日時 | 2019-01-13 19:11:12 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 124 ms / 5,000 ms |
コード長 | 381 bytes |
コンパイル時間 | 2,873 ms |
コンパイル使用メモリ | 72,188 KB |
実行使用メモリ | 57,856 KB |
最終ジャッジ日時 | 2023-08-26 22:16:24 |
合計ジャッジ時間 | 5,007 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 115 ms
56,056 KB |
testcase_01 | AC | 116 ms
56,240 KB |
testcase_02 | AC | 117 ms
56,352 KB |
testcase_03 | AC | 115 ms
55,700 KB |
testcase_04 | AC | 119 ms
57,856 KB |
testcase_05 | AC | 118 ms
56,144 KB |
testcase_06 | AC | 115 ms
56,200 KB |
testcase_07 | AC | 118 ms
55,892 KB |
testcase_08 | AC | 124 ms
55,988 KB |
ソースコード
import java.util.Scanner; public class A000264 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int me = sc.nextInt(); int you = sc.nextInt(); sc.close(); String res = ""; if(you==me) { res="Drew"; }else { if(you==0)you+=3; if(me+1==you) { res="Won"; }else { res="Lost"; } } System.out.println(res); } }