結果
問題 | No.188 HAPPY DAY |
ユーザー | vanilla |
提出日時 | 2018-04-18 19:02:14 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 422 bytes |
コンパイル時間 | 454 ms |
コンパイル使用メモリ | 63,476 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-09 11:23:53 |
合計ジャッジ時間 | 821 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
ソースコード
#include<iostream> using namespace std; int main(){ int n = 0; for(int m = 1; m <= 12; m++){ for(int fd = 0; fd <= 3; fd++){ for(int ld = 0; ld <= 9; ld++){ if(fd == 3 && ld > 0){ break; } if(m == fd + ld){ n++; } } } } cout << n << endl; return 0; }