結果

問題 No.188 HAPPY DAY
ユーザー gomagoma
提出日時 2017-09-14 21:38:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 308 bytes
コンパイル時間 2,474 ms
コンパイル使用メモリ 70,692 KB
実行使用メモリ 47,084 KB
最終ジャッジ日時 2023-08-30 01:27:44
合計ジャッジ時間 2,615 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
47,084 KB
権限があれば一括ダウンロードができます

ソースコード

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 <= 2; y1++) {
				for (int y2 = 0; y2 < 10; y2++) {
					ans = y1 + y2;
					if (ans == x) {
						count++;
					}
				}
			}
		}
		System.out.println(count);
	}
}
0