結果

問題 No.188 HAPPY DAY
ユーザー koukonkokoukonko
提出日時 2015-12-14 15:28:22
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 440 bytes
コンパイル時間 3,854 ms
コンパイル使用メモリ 82,844 KB
実行使用メモリ 53,376 KB
最終ジャッジ日時 2023-08-29 03:44:48
合計ジャッジ時間 4,772 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

package yukicoder;

public class Main {
	public static void main(String[] args) {
		try {
			int ans = 0;
			for (int i = 1; i <= 12; ++i) {
				for (int j = 0; j <= 3; ++j) {
					for (int k = 0; k < 10; ++k) {
						if (j * 10 + k <= 30 && i == j + k) {
							++ans;
							System.out.println(i + "M " + j + "" + k + "d");
						}
					}
				}
			}

			System.out.println(ans);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
0