結果

問題 No.842 初詣
ユーザー heyanxxheyanxx
提出日時 2019-07-03 15:34:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 876 bytes
コンパイル時間 6,343 ms
コンパイル使用メモリ 71,424 KB
実行使用メモリ 49,724 KB
最終ジャッジ日時 2023-10-13 10:36:07
合計ジャッジ時間 5,659 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,140 KB
testcase_01 AC 44 ms
49,220 KB
testcase_02 AC 45 ms
49,132 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 45 ms
49,064 KB
testcase_07 AC 44 ms
49,108 KB
testcase_08 AC 44 ms
49,148 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 44 ms
49,100 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 45 ms
49,224 KB
testcase_15 AC 44 ms
49,192 KB
testcase_16 AC 45 ms
49,216 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 43 ms
49,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package test.demo;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Yukicoder842 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
		try {
			String str =bf.readLine();
			String[]str2=str.split(" ");
			int a=Integer.parseInt(str2[0]);
			int b=Integer.parseInt(str2[1]);
			int c=Integer.parseInt(str2[2]);
			int d=Integer.parseInt(str2[3]);
			int e=Integer.parseInt(str2[4]);
			int f=Integer.parseInt(str2[5]);
			int g=Integer.parseInt(str2[6]);
			if(a*500+b*100+c*50+d*10+e*5+f==g) {
				System.out.println("YES");
			}else {
				System.out.println("NO");
			}
			
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
		

	}

}
0