結果

問題 No.342 一番ワロタww
ユーザー fal_rndfal_rnd
提出日時 2016-10-27 00:48:14
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 456 bytes
コンパイル時間 3,059 ms
コンパイル使用メモリ 73,732 KB
実行使用メモリ 56,076 KB
最終ジャッジ日時 2023-08-15 19:30:17
合計ジャッジ時間 5,397 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 124 ms
55,556 KB
testcase_02 AC 124 ms
56,072 KB
testcase_03 AC 125 ms
55,760 KB
testcase_04 AC 125 ms
55,260 KB
testcase_05 AC 124 ms
55,636 KB
testcase_06 WA -
testcase_07 AC 126 ms
55,516 KB
testcase_08 WA -
testcase_09 AC 124 ms
55,860 KB
testcase_10 AC 123 ms
56,076 KB
testcase_11 AC 124 ms
55,648 KB
testcase_12 AC 127 ms
55,284 KB
testcase_13 AC 129 ms
55,656 KB
testcase_14 AC 126 ms
55,260 KB
testcase_15 AC 124 ms
55,696 KB
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class A {
	static Scanner s = new Scanner(System.in);
	static String  w = "w";
	public static void main(String[] args) {
		String in = s.nextLine();
		String ww = w;
		if(in.matches("w+")||!in.contains("w")) {
			System.out.println();
			return;
		}
		while(in.contains(ww+w)) {
			ww+=w;
		}
		String[] ss = in.split(ww);
		for(String s:ss) {
			if(!s.isEmpty())
				System.out.println(s.substring(s.lastIndexOf(w)+1));
		}
	}
}
0