結果
問題 |
No.264 じゃんけん
|
ユーザー |
|
提出日時 | 2024-03-31 19:53:47 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 447 bytes |
コンパイル時間 | 2,397 ms |
コンパイル使用メモリ | 74,476 KB |
実行使用メモリ | 54,388 KB |
最終ジャッジ日時 | 2024-09-30 21:20:08 |
合計ジャッジ時間 | 4,354 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 1 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int s = (n - k) % 3; if (s == 0) { System.out.println("Drew"); } else if (s == 1) { System.out.println("Lost"); } else { System.out.println("Won"); } sc.close(); } }