結果
問題 | No.481 1から10 |
ユーザー | intercept6 |
提出日時 | 2020-09-16 09:40:20 |
言語 | TypeScript (5.4.3) |
結果 |
RE
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 10,340 ms |
コンパイル使用メモリ | 255,880 KB |
実行使用メモリ | 42,828 KB |
最終ジャッジ日時 | 2023-09-04 03:23:19 |
合計ジャッジ時間 | 10,545 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 77 ms
42,408 KB |
testcase_01 | AC | 77 ms
42,404 KB |
testcase_02 | AC | 77 ms
42,396 KB |
testcase_03 | AC | 77 ms
42,284 KB |
testcase_04 | AC | 75 ms
42,344 KB |
testcase_05 | AC | 76 ms
42,280 KB |
testcase_06 | AC | 75 ms
42,348 KB |
testcase_07 | AC | 76 ms
42,212 KB |
testcase_08 | AC | 76 ms
42,436 KB |
testcase_09 | RE | - |
ソースコード
import { readFileSync } from 'fs'; function Main(input: string) { const data = input.split('\n'); const numbers = data[0].split(' ').map(Number); const res = numbers.find((value, index) => value !== index + 1); if (res == null) { throw new Error('Not Found'); } console.log(res - 1); } Main(readFileSync('/dev/stdin', 'utf8'));