結果

問題 No.1119 Division 3
ユーザー xRS43BofaUEZ5gc
提出日時 2021-03-04 09:35:19
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 367 bytes
コンパイル時間 2,933 ms
コンパイル使用メモリ 74,804 KB
実行使用メモリ 41,668 KB
最終ジャッジ日時 2024-10-04 12:56:26
合計ジャッジ時間 5,791 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 8 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class HelloWorld {

	    public static void main(String[] args) throws Exception {

	    	Scanner sc = new Scanner(System.in);
	    	int x = sc.nextInt();
	    	int y = sc.nextInt();
	    	int z = sc.nextInt();
	    	sc.close();

	    	int a = x % 3 + y % 3 + z % 3;

	    	System.out.println(a % 3== 0 ? "Yes" : "No");

	    	}



}
0