結果

問題 No.932 解法破綻!高橋君
ユーザー 37zigen37zigen
提出日時 2020-01-23 04:31:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 219 ms / 2,000 ms
コード長 335 bytes
コンパイル時間 3,554 ms
コンパイル使用メモリ 72,160 KB
実行使用メモリ 59,360 KB
最終ジャッジ日時 2023-09-25 08:50:29
合計ジャッジ時間 7,466 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,608 KB
testcase_01 AC 112 ms
56,044 KB
testcase_02 AC 115 ms
55,880 KB
testcase_03 AC 115 ms
55,564 KB
testcase_04 AC 117 ms
55,856 KB
testcase_05 AC 114 ms
55,980 KB
testcase_06 AC 116 ms
56,044 KB
testcase_07 AC 116 ms
56,028 KB
testcase_08 AC 116 ms
55,480 KB
testcase_09 AC 118 ms
55,892 KB
testcase_10 AC 118 ms
56,192 KB
testcase_11 AC 120 ms
55,456 KB
testcase_12 AC 124 ms
55,848 KB
testcase_13 AC 122 ms
56,040 KB
testcase_14 AC 128 ms
55,700 KB
testcase_15 AC 119 ms
54,256 KB
testcase_16 AC 130 ms
56,336 KB
testcase_17 AC 216 ms
59,360 KB
testcase_18 AC 219 ms
59,080 KB
testcase_19 AC 217 ms
58,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

class Main{
	public static void main(String[] args){
		new Main().run();
	}
	
	void run(){
		Scanner sc=new Scanner(System.in);
		char[] a=sc.next().toCharArray();
		boolean f=true;
		for(int i=0;i<a.length;++i)f&=a[i]!='L'&&a[i]!='W'&&a[i]!='M';
		System.out.println(f?"Done!":"Failed...");
	}
}
0