結果

問題 No.969 じゃんけん
ユーザー T AT A
提出日時 2020-07-26 10:49:16
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 365 bytes
コンパイル時間 9,323 ms
コンパイル使用メモリ 254,076 KB
実行使用メモリ 44,392 KB
最終ジャッジ日時 2023-09-10 18:13:55
合計ジャッジ時間 10,459 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
42,344 KB
testcase_01 AC 84 ms
42,460 KB
testcase_02 AC 86 ms
42,424 KB
testcase_03 AC 85 ms
42,420 KB
testcase_04 AC 86 ms
44,392 KB
testcase_05 AC 84 ms
42,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const lines = [];
const reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
  const input: number = parseInt(lines[0])
  if (input === 0 || input === 4 || input === 10) {
    console.log('Yes');
  }else {
    console.log('No');
  }
});
0