結果
問題 | No.1335 1337 |
ユーザー |
|
提出日時 | 2022-11-20 09:50:47 |
言語 | JavaScript (node v23.5.0) |
結果 |
AC
|
実行時間 | 64 ms / 2,000 ms |
コード長 | 354 bytes |
コンパイル時間 | 75 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 39,040 KB |
最終ジャッジ日時 | 2024-09-21 11:07:40 |
合計ジャッジ時間 | 3,781 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 14 |
ソースコード
function Main(input) { let src = input.split("\n"); const a = [...src[0]]; const s = [...src[1]]; let ans = ""; s.forEach(c => { if (isNaN(c)) { ans = ans + c; } else { ans = ans + a[parseInt(c)]; } }); console.log(ans); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));