結果

問題 No.188 HAPPY DAY
ユーザー goma
提出日時 2017-09-14 21:38:44
言語 Java
(openjdk 23)
結果
AC  
実行時間 57 ms / 1,000 ms
コード長 308 bytes
コンパイル時間 2,125 ms
コンパイル使用メモリ 73,788 KB
実行使用メモリ 49,956 KB
最終ジャッジ日時 2024-12-31 05:57:29
合計ジャッジ時間 2,623 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 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 <= 2; y1++) {
				for (int y2 = 0; y2 < 10; y2++) {
					ans = y1 + y2;
					if (ans == x) {
						count++;
					}
				}
			}
		}
		System.out.println(count);
	}
}
0