結果
問題 |
No.188 HAPPY DAY
|
ユーザー |
|
提出日時 | 2022-03-06 19:10:38 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 467 bytes |
コンパイル時間 | 2,389 ms |
コンパイル使用メモリ | 73,576 KB |
実行使用メモリ | 53,772 KB |
最終ジャッジ日時 | 2024-07-21 05:02:25 |
合計ジャッジ時間 | 3,082 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 1 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int result = 0; for (int i = 1; i <= 12; i++) { for (int j = 0; j <= 3; j++) { for (int k = 0; k <= 9; k++) { if(j + k == i) { result += 1; } else if(j >= 3 && k >= 2) { break; } } } } System.out.println(result); sc.close(); } }