結果

問題 No.1337 Fair Otoshidama
ユーザー ks2mks2m
提出日時 2021-01-15 21:38:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 4,263 ms
コンパイル使用メモリ 70,804 KB
実行使用メモリ 56,352 KB
最終ジャッジ日時 2023-08-17 16:24:16
合計ジャッジ時間 7,334 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,692 KB
testcase_01 AC 123 ms
55,656 KB
testcase_02 AC 123 ms
55,944 KB
testcase_03 AC 123 ms
55,680 KB
testcase_04 AC 123 ms
55,692 KB
testcase_05 AC 123 ms
55,612 KB
testcase_06 AC 123 ms
55,476 KB
testcase_07 AC 122 ms
55,804 KB
testcase_08 AC 123 ms
55,924 KB
testcase_09 AC 123 ms
55,608 KB
testcase_10 AC 123 ms
55,688 KB
testcase_11 AC 124 ms
56,352 KB
testcase_12 AC 123 ms
55,652 KB
testcase_13 AC 122 ms
55,656 KB
testcase_14 AC 123 ms
56,068 KB
testcase_15 AC 123 ms
55,964 KB
testcase_16 AC 126 ms
56,000 KB
testcase_17 AC 123 ms
55,692 KB
testcase_18 AC 123 ms
55,832 KB
testcase_19 AC 122 ms
55,928 KB
testcase_20 AC 123 ms
55,612 KB
testcase_21 AC 122 ms
55,612 KB
testcase_22 AC 123 ms
55,660 KB
testcase_23 AC 125 ms
55,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		long x = sc.nextInt();
		long y = sc.nextInt();
		long z = sc.nextInt();
		sc.close();

		long s = x + y + z;
		if (s % 3 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}
0