結果
| 問題 |
No.547 未知の言語
|
| コンテスト | |
| ユーザー |
megane_anko
|
| 提出日時 | 2021-03-10 00:57:22 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
AC
|
| 実行時間 | 65 ms / 2,000 ms |
| コード長 | 402 bytes |
| コンパイル時間 | 8,193 ms |
| コンパイル使用メモリ | 228,812 KB |
| 実行使用メモリ | 41,456 KB |
| 最終ジャッジ日時 | 2024-12-31 16:33:09 |
| 合計ジャッジ時間 | 11,349 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
ソースコード
import * as fs from 'fs';
const input = fs.readFileSync('/dev/stdin', 'utf8');
const nlarray = input.split('\n');
const N = parseInt(nlarray[0]);
const Sarray = nlarray[1].split(' ');
const Tarray = nlarray[2].split(' ');
for (let i = 0;i < N; i++) {
if (Sarray[i] !== Tarray[i]) {
console.log(i + 1);
console.log(Sarray[i]);
console.log(Tarray[i]);
break;
}
}
megane_anko