結果

問題 No.1799 Summer Day
ユーザー Masaki KitaguchiMasaki Kitaguchi
提出日時 2022-01-10 17:34:48
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 811 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 39,936 KB
最終ジャッジ日時 2024-04-26 20:13:38
合計ジャッジ時間 2,645 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
39,552 KB
testcase_01 AC 65 ms
39,680 KB
testcase_02 AC 67 ms
39,552 KB
testcase_03 AC 67 ms
39,680 KB
testcase_04 AC 67 ms
39,552 KB
testcase_05 AC 66 ms
39,680 KB
testcase_06 AC 65 ms
39,680 KB
testcase_07 AC 68 ms
39,552 KB
testcase_08 AC 65 ms
39,680 KB
testcase_09 AC 65 ms
39,552 KB
testcase_10 AC 62 ms
39,552 KB
testcase_11 AC 64 ms
39,680 KB
testcase_12 AC 67 ms
39,552 KB
testcase_13 AC 66 ms
39,552 KB
testcase_14 AC 65 ms
39,680 KB
testcase_15 AC 66 ms
39,552 KB
testcase_16 AC 66 ms
39,552 KB
testcase_17 AC 64 ms
39,936 KB
testcase_18 AC 64 ms
39,936 KB
testcase_19 AC 67 ms
39,680 KB
testcase_20 AC 67 ms
39,680 KB
testcase_21 AC 66 ms
39,552 KB
testcase_22 AC 62 ms
39,680 KB
testcase_23 AC 65 ms
39,552 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const lineIter = (function* () {
  const stdin = require('fs').readFileSync(process.stdin.fd, 'utf8');
  const lines = stdin.trim().split('\n');
  for (const line of lines) {
    yield line.trim();
  }
})();
const wordIter = (function* () {
  while (true) {
    const { done, value: line } = lineIter.next();
    if (done) {
      break;
    }
    const words = line.split(' ');
    for (const word of words) {
      yield word;
    }
  }
})();
const read = () => wordIter.next().value;

const main = async () => {
  const n = parseInt(read());
  const s = parseInt(read());

  let ans = (() => {
    if (25 <= s && s <= 29 * n) {
      return 'Yes';
    } else {
      return 'No';
    }
  })();

  console.log(ans);
};

(async () => {
  try {
    await main();
  } catch (e) {
    console.error(e);
  }
})();
0