結果

問題 No.486 3 Straight Win(3連勝)
ユーザー HEGO55HEGO55
提出日時 2017-05-10 16:29:41
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 321 bytes
コンパイル時間 1,887 ms
コンパイル使用メモリ 71,688 KB
実行使用メモリ 56,424 KB
最終ジャッジ日時 2023-10-13 10:02:47
合計ジャッジ時間 6,527 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
55,812 KB
testcase_01 AC 113 ms
55,768 KB
testcase_02 AC 119 ms
55,588 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 112 ms
56,424 KB
testcase_06 AC 116 ms
55,640 KB
testcase_07 WA -
testcase_08 AC 116 ms
55,932 KB
testcase_09 WA -
testcase_10 AC 116 ms
56,176 KB
testcase_11 AC 118 ms
55,792 KB
testcase_12 WA -
testcase_13 AC 114 ms
55,932 KB
testcase_14 AC 112 ms
56,152 KB
testcase_15 AC 111 ms
55,592 KB
testcase_16 AC 112 ms
55,868 KB
testcase_17 AC 114 ms
55,920 KB
testcase_18 AC 116 ms
55,760 KB
testcase_19 AC 113 ms
55,564 KB
testcase_20 AC 114 ms
56,112 KB
testcase_21 AC 114 ms
55,700 KB
testcase_22 AC 117 ms
56,076 KB
testcase_23 WA -
testcase_24 AC 115 ms
55,848 KB
testcase_25 AC 122 ms
55,348 KB
testcase_26 AC 119 ms
55,884 KB
testcase_27 AC 115 ms
55,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class Test33{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		
		if(str.indexOf("OOO") != -1){
			System.out.println("East");
		}else if(str.indexOf("XXX") != -1){
			System.out.println("West");
		}else{
			System.out.println("NA");
		}
	}
}
0