結果
| 問題 | No.481 1から10 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-10 15:58:38 |
| 言語 | TypeScript(Node) (7.0.2 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 349 bytes |
| 記録 | |
| コンパイル時間 | 945 ms |
| コンパイル使用メモリ | 195,816 KB |
| 実行使用メモリ | 51,520 KB |
| 最終ジャッジ日時 | 2026-10-09 23:56:50 |
| 合計ジャッジ時間 | 2,308 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 RE * 1 |
ソースコード
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'));