結果

問題 No.342 一番ワロタww
ユーザー fal_rnd
提出日時 2016-10-27 00:42:59
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 378 bytes
コンパイル時間 2,222 ms
コンパイル使用メモリ 76,596 KB
実行使用メモリ 41,536 KB
最終ジャッジ日時 2024-11-24 03:56:16
合計ジャッジ時間 4,740 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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;
		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