結果
| 問題 | No.3419 Ars magna |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-11 13:33:03 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 878µs | |
| コード長 | 367 bytes |
| 記録 | |
| コンパイル時間 | 597 ms |
| コンパイル使用メモリ | 188,908 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-20 05:01:25 |
| 合計ジャッジ時間 | 2,413 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
use itertools::Itertools;
use proconio::input;
#[allow(unused)]
use proconio::marker::*;
#[allow(unused)]
use std::collections::*;
fn main() {
input! {
n: usize,
s: Chars,
p: [Usize1; n],
};
let mut ans = s.clone();
for (i, &p) in p.iter().enumerate() {
ans[i] = s[p];
}
println!("{}", ans.iter().join(""));
}