結果

問題 No.88 次はどっちだ
ユーザー fal_rndfal_rnd
提出日時 2017-09-29 23:59:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 5,000 ms
コード長 642 bytes
コンパイル時間 2,543 ms
コンパイル使用メモリ 80,100 KB
実行使用メモリ 54,312 KB
最終ジャッジ日時 2024-04-27 16:25:23
合計ジャッジ時間 4,312 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
52,836 KB
testcase_01 AC 135 ms
54,312 KB
testcase_02 AC 115 ms
53,264 KB
testcase_03 AC 126 ms
54,064 KB
testcase_04 AC 125 ms
54,240 KB
testcase_05 AC 118 ms
54,088 KB
testcase_06 AC 113 ms
53,356 KB
testcase_07 AC 118 ms
53,876 KB
testcase_08 AC 124 ms
54,008 KB
testcase_09 AC 119 ms
54,124 KB
testcase_10 AC 120 ms
54,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n){return REPS(n).map(i->getInt());}
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}
	static long getLong(){return Long.parseLong(s.next());}

	public static void main(String[]$){
		String f=s.next();
		System.out.println(
				REPS(8).flatMap(i->s.next().chars())
				.filter(i->i!='.')
				.count()
				%2==1^f.equals("oda")?"oda":"yukiko"
				);
	}
}
0