結果

問題 No.481 1から10
ユーザー Takuya Ito
提出日時 2022-12-15 08:19:48
言語 TypeScript
(5.7.2)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 8,985 ms
コンパイル使用メモリ 229,752 KB
実行使用メモリ 39,296 KB
最終ジャッジ日時 2024-12-31 16:48:25
合計ジャッジ時間 9,495 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input: string): void {
  const nums: number[] = input.split(' ').map(str => parseInt(str));

  for (let num = 1; num <= 10; num++) {
    if (!nums.includes(num)) {
      console.log(num);
      break;
    }
  }
}

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