結果

問題 No.264 じゃんけん
ユーザー akuto1125akuto1125
提出日時 2018-09-27 22:52:49
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 337 bytes
コンパイル時間 29 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 39,296 KB
最終ジャッジ日時 2024-04-21 02:12:08
合計ジャッジ時間 1,036 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 57 ms
38,272 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 59 ms
39,296 KB
testcase_06 AC 57 ms
38,144 KB
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
  input = input.split(' ');
  let mine = parseInt(input[0]);
  let yours = parseInt(input[1]);

  switch (mine - yours) {
    case 0:
      console.log('Drew');
    case 1:
    case -2:
      console.log('Lost');
    default:
      console.log('Won');
  }

}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));
0