結果
問題 |
No.264 じゃんけん
|
ユーザー |
|
提出日時 | 2024-03-31 22:16:44 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 111 ms / 5,000 ms |
コード長 | 451 bytes |
コンパイル時間 | 2,540 ms |
コンパイル使用メモリ | 74,060 KB |
実行使用メモリ | 41,728 KB |
最終ジャッジ日時 | 2024-09-30 21:28:33 |
合計ジャッジ時間 | 3,632 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
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) % 3; if (s == 0) { System.out.println("Drew"); } else if (s == 1) { System.out.println("Lost"); } else { System.out.println("Won"); } sc.close(); } }