結果
| 問題 |
No.676 C0nvertPr0b1em
|
| コンテスト | |
| ユーザー |
ゆきのしん
|
| 提出日時 | 2018-04-27 23:54:31 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 385 bytes |
| コンパイル時間 | 12,637 ms |
| コンパイル使用メモリ | 378,768 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-23 12:34:53 |
| 合計ジャッジ時間 | 12,912 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
ソースコード
fn main() {
let mut buf = String::new();
let _ = std::io::stdin().read_line(&mut buf);
let bytes = buf.as_bytes();
if let Ok(ans) = String::from_utf8(
bytes.iter().map(|&b|
match b {
b'I' | b'l'=> b'1',
b'o' | b'O' => b'0',
_ => b,
}
).collect()
) {
println!("{}", ans);
}
}
ゆきのしん