結果
問題 | No.264 じゃんけん |
ユーザー |
![]() |
提出日時 | 2015-08-07 22:32:50 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 137 ms / 5,000 ms |
コード長 | 779 bytes |
コンパイル時間 | 3,628 ms |
コンパイル使用メモリ | 77,660 KB |
実行使用メモリ | 54,372 KB |
最終ジャッジ日時 | 2024-07-18 05:10:50 |
合計ジャッジ時間 | 5,305 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
import java.util.*; import java.io.*; import java.awt.geom.*; import java.math.*; public class No0264 { static final Scanner in = new Scanner(System.in); static final PrintWriter out = new PrintWriter(System.out,false); static void solve() { int n = in.nextInt(); int k = in.nextInt(); if (n == k) { out.println("Drew"); }else if ((n == 0 && k == 1) || (n == 1 && k == 2) || (n == 2 && k == 0)) { out.println("Won"); }else { out.println("Lost"); } } public static void main(String[] args) { long start = System.currentTimeMillis(); solve(); out.flush(); long end = System.currentTimeMillis(); //trace(end-start + "ms"); in.close(); out.close(); } static void trace(Object... o) { System.out.println(Arrays.deepToString(o));} }