結果
| 問題 | 
                            No.1337 Fair Otoshidama
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ks2m
                         | 
                    
| 提出日時 | 2021-01-15 21:38:14 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 125 ms / 2,000 ms | 
| コード長 | 356 bytes | 
| コンパイル時間 | 4,096 ms | 
| コンパイル使用メモリ | 84,364 KB | 
| 実行使用メモリ | 41,328 KB | 
| 最終ジャッジ日時 | 2024-11-26 13:38:15 | 
| 合計ジャッジ時間 | 5,891 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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