結果

問題 No.481 1から10
ユーザー 濱田孝治
提出日時 2020-08-27 15:51:42
言語 TypeScript
(5.7.2)
結果
WA  
実行時間 -
コード長 557 bytes
コンパイル時間 8,455 ms
コンパイル使用メモリ 228,972 KB
実行使用メモリ 41,328 KB
最終ジャッジ日時 2024-12-31 16:19:16
合計ジャッジ時間 9,161 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input: any) {
  // inputにはすべての入力の文字列が与えられるので必要に応じて input.split("\n") などで分割する。
  const data = input.split("\n");
  const B: number[] = data[0].split(" ").map(Number);

  //B.sort(compareFunc);

  for (let i: number = 0; i < 9; i++) {
    if (B[i] + 1 != B[i + 1]) {
      if (i == 0) {
        console.log(i + 1);
      }
      else {
        console.log(i + 2);
      }
      break;
    }
  }
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0