結果

問題 No.969 じゃんけん
ユーザー T A
提出日時 2020-07-26 10:49:16
言語 TypeScript
(5.7.2)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 365 bytes
コンパイル時間 7,812 ms
コンパイル使用メモリ 229,272 KB
実行使用メモリ 42,096 KB
最終ジャッジ日時 2024-12-31 16:16:19
合計ジャッジ時間 8,850 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

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