結果

問題 No.2041 E-mail Address
ユーザー merlinmerlin
提出日時 2022-08-19 21:26:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 526 bytes
コンパイル時間 2,226 ms
コンパイル使用メモリ 74,140 KB
実行使用メモリ 37,016 KB
最終ジャッジ日時 2024-04-17 00:06:47
合計ジャッジ時間 3,585 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
36,828 KB
testcase_01 AC 52 ms
36,544 KB
testcase_02 AC 52 ms
36,944 KB
testcase_03 AC 54 ms
36,520 KB
testcase_04 AC 52 ms
36,532 KB
testcase_05 AC 53 ms
36,804 KB
testcase_06 AC 54 ms
36,868 KB
testcase_07 AC 54 ms
36,976 KB
testcase_08 AC 53 ms
36,680 KB
testcase_09 AC 54 ms
36,764 KB
testcase_10 AC 54 ms
37,016 KB
testcase_11 AC 54 ms
36,992 KB
testcase_12 AC 57 ms
36,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader bu=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder();
        String s=bu.readLine();
        for(int i=0;i<s.length();i++)
        {
            if(s.charAt(i)!='(') {sb.append(s.charAt(i)); continue;}
            sb.append("@");
            while(i<s.length() && s.charAt(i)!=')') i++;
        }
        System.out.println(sb);
    }
}
0