結果
問題 | No.264 じゃんけん |
ユーザー |
|
提出日時 | 2018-10-11 18:06:41 |
言語 | JavaScript (node v23.5.0) |
結果 |
AC
|
実行時間 | 72 ms / 5,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 46 ms |
コンパイル使用メモリ | 6,824 KB |
実行使用メモリ | 39,296 KB |
最終ジャッジ日時 | 2024-10-13 00:43:35 |
合計ジャッジ時間 | 1,259 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
function Main(input) { var [me, enemy] = input.split('\n')[0].split(' ').map(s => parseInt(s, 10)); if (me == enemy) { return console.log('Drew'); } else if ((enemy - me + 3) % 3 == 1) { return console.log('Won'); } else { return console.log('Lost'); } } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));