結果
| 問題 |
No.2041 E-mail Address
|
| コンテスト | |
| ユーザー |
packer_jp
|
| 提出日時 | 2022-08-19 21:23:59 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 374 bytes |
| コンパイル時間 | 14,359 ms |
| コンパイル使用メモリ | 396,196 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-08 07:22:05 |
| 合計ジャッジ時間 | 15,478 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
use proconio::input;
use proconio::marker::Chars;
fn main() {
input! {t:Chars}
let mut locked = false;
for i in 0..t.len() {
if t[i] == '(' {
locked = true;
}
if !locked {
print!("{}", t[i])
};
if t[i] == ')' {
locked = false;
print!("@")
}
}
println!();
}
packer_jp