結果
| 問題 | No.1337 Fair Otoshidama |
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2021-01-15 21:38:14 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 70 ms / 2,000 ms |
| コード長 | 356 bytes |
| 記録 | |
| コンパイル時間 | 3,820 ms |
| コンパイル使用メモリ | 81,532 KB |
| 実行使用メモリ | 41,600 KB |
| 最終ジャッジ日時 | 2026-05-21 00:41:54 |
| 合計ジャッジ時間 | 5,278 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
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");
}
}
}
ks2m