結果

問題 No.2041 E-mail Address
ユーザー ks2mks2m
提出日時 2022-08-19 21:23:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 149 ms / 2,000 ms
コード長 403 bytes
コンパイル時間 2,260 ms
コンパイル使用メモリ 74,236 KB
実行使用メモリ 41,328 KB
最終ジャッジ日時 2024-04-17 00:02:08
合計ジャッジ時間 4,635 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
41,292 KB
testcase_01 AC 117 ms
40,144 KB
testcase_02 AC 131 ms
41,108 KB
testcase_03 AC 129 ms
41,304 KB
testcase_04 AC 130 ms
40,928 KB
testcase_05 AC 133 ms
41,080 KB
testcase_06 AC 132 ms
41,324 KB
testcase_07 AC 135 ms
40,792 KB
testcase_08 AC 136 ms
41,328 KB
testcase_09 AC 135 ms
41,144 KB
testcase_10 AC 135 ms
41,196 KB
testcase_11 AC 149 ms
41,168 KB
testcase_12 AC 143 ms
40,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String t = sc.next();
		sc.close();

		int l = t.indexOf("(");
		int r = t.indexOf(")");
		StringBuilder sb = new StringBuilder();
		sb.append(t.substring(0, l));
		sb.append('@');
		sb.append(t.substring(r + 1));
		System.out.println(sb.toString());
	}
}
0