結果

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

ソースコード

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]) {
      console.log(i + 2);
      break;
    }
  }
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0