結果

問題 No.188 HAPPY DAY
ユーザー rainyrainy
提出日時 2021-06-07 10:03:50
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 0 ms / 1,000 ms
コード長 574 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 26,944 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-08-16 02:00:17
合計ジャッジ時間 756 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<stdio.h>
 int main(void){
     int count = 0;
     for(int i = 0; i < 3;i++){
         for(int l=1; l < 10;l++){
             switch(i+l){
                 case 1:
                 case 2:
                 case 3:
                 case 4:
                 case 5:
                 case 6:
                 case 7:
                 case 8:
                 case 9:
                 case 10:
                 case 11:
                 case 12:
                    count +=1;
                    break;
             }
         }
     }
     printf("%d", count + 3); 
}
0