結果
| 問題 |
No.2041 E-mail Address
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-08 00:06:15 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 342 bytes |
| コンパイル時間 | 2,179 ms |
| コンパイル使用メモリ | 193,788 KB |
| 最終ジャッジ日時 | 2025-02-07 03:26:02 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main () {
string s;
cin >> s;
bool co = true;;
for (char c : s) {
if (c == '(') {
co = false;
} else if (c == ')') {
co = true;
cout << "@";
} else if (co) {
cout << c;
}
}
cout << endl;
}