結果

問題 No.2460 #強調#
ユーザー Vishant SandilyaVishant Sandilya
提出日時 2023-09-29 20:05:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 446 bytes
コンパイル時間 4,328 ms
コンパイル使用メモリ 71,548 KB
実行使用メモリ 49,516 KB
最終ジャッジ日時 2023-09-29 20:05:47
合計ジャッジ時間 6,108 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
49,112 KB
testcase_01 AC 43 ms
49,516 KB
testcase_02 AC 42 ms
49,252 KB
testcase_03 AC 42 ms
49,204 KB
testcase_04 AC 41 ms
49,148 KB
testcase_05 AC 42 ms
49,248 KB
testcase_06 AC 45 ms
49,188 KB
testcase_07 AC 42 ms
49,160 KB
testcase_08 AC 42 ms
49,204 KB
testcase_09 AC 41 ms
49,308 KB
testcase_10 AC 40 ms
49,232 KB
testcase_11 AC 41 ms
49,144 KB
testcase_12 AC 42 ms
49,120 KB
testcase_13 AC 42 ms
49,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class yc1 {
    public static void main(String[] args) throws IOException {
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        String s = buf.readLine();
        int i =0;
        while(s.charAt(i)!='#')i++;
        StringBuilder ans = new StringBuilder();
        for(i++;s.charAt(i)!='#';i++)ans.append(s.charAt(i));
        System.out.println(ans);
    }
}
0