結果

問題 No.188 HAPPY DAY
ユーザー goma
提出日時 2017-09-14 21:37:19
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 309 bytes
コンパイル時間 2,109 ms
コンパイル使用メモリ 74,164 KB
実行使用メモリ 50,120 KB
最終ジャッジ日時 2024-12-31 05:57:03
合計ジャッジ時間 2,685 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

public class Main {
	public static void main(String[] args) {
		int ans = 0, count = 1;
		for (int x = 1; x <= 12; x++) {
			for (int y1 = 0; y1 <= 3; y1++) {
				for (int y2 = 0; y2 < 10; y2++) {
					ans = y1 + y2;
					if (ans == x) {
						count++;
					}
				}
			}

		}
		System.out.println(count);
	}
}
0