結果
問題 | No.547 未知の言語 |
ユーザー |
|
提出日時 | 2017-07-29 23:42:15 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 559 bytes |
コンパイル時間 | 12,237 ms |
コンパイル使用メモリ | 392,460 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 02:22:49 |
合計ジャッジ時間 | 13,442 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
ソースコード
#[allow(unused_variables)] fn main(){ let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); let length: usize = s.trim().parse().unwrap(); s.clear(); let mut diff: Vec<String> = Vec::new(); for i in 0..2 { s.clear(); std::io::stdin().read_line(&mut s).unwrap(); let vec: Vec<&str> = s.trim().split(' ').collect(); for j in vec { let f = format!("{}", j); diff.push(f); } } for i in 0..diff.len() * 2 { if diff[i] != diff[i + length] { println!("{}\n{}\n{}", i + 1, diff[i], diff[i + length]); break; } } }