結果

問題 No.102 トランプを奪え
ユーザー 37zigen37zigen
提出日時 2020-03-30 19:50:34
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 463 bytes
コンパイル時間 3,496 ms
コンパイル使用メモリ 77,992 KB
実行使用メモリ 56,160 KB
最終ジャッジ日時 2023-09-05 03:59:02
合計ジャッジ時間 5,343 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,500 KB
testcase_01 AC 121 ms
56,024 KB
testcase_02 AC 124 ms
56,160 KB
testcase_03 AC 125 ms
55,740 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 124 ms
55,752 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 125 ms
55,572 KB
testcase_10 AC 121 ms
53,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;


class Main {
	public static void main(String[] args) {
		new Main().run();
	}
	
	void run() {
		Scanner sc=new Scanner(System.in);
		long[] N=new long[4];
		long ans=0;
		for(int i=0;i<4;++i) {
			N[i]=sc.nextLong()%3;
			ans^=N[i];
		}
		System.out.println(ans!=0?"Taro":"Jiro");
	}
	
	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}

}

0