結果
問題 |
No.264 じゃんけん
|
ユーザー |
![]() |
提出日時 | 2017-05-04 18:15:38 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 600 bytes |
コンパイル時間 | 3,265 ms |
コンパイル使用メモリ | 74,728 KB |
実行使用メモリ | 50,464 KB |
最終ジャッジ日時 | 2024-09-14 07:10:24 |
合計ジャッジ時間 | 4,340 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 4 |
ソースコード
/*No.264 じゃんけん*/ import java.io.*; public class No264 { public static void main(String[] args) { String s_battle,h_battle[]=new String[2]; byte me,you; try(BufferedReader input =new BufferedReader(new InputStreamReader(System.in))){ s_battle =input.readLine(); h_battle=s_battle.split(" "); me =Byte.parseByte(h_battle[0]); you =Byte.parseByte(h_battle[1]); if(me>you){ System.out.println("Won"); }else if(me==you){ System.out.println("Drew"); }else if(me<you){ System.out.println("Lost"); } }catch(Exception e){ e.printStackTrace(); } } }