結果
問題 | No.188 HAPPY DAY |
ユーザー | AMeararEX |
提出日時 | 2016-09-09 23:57:59 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 380 ms |
コンパイル使用メモリ | 51,104 KB |
実行使用メモリ | 4,376 KB |
最終ジャッジ日時 | 2023-08-29 22:20:01 |
合計ジャッジ時間 | 787 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
ソースコード
#include <iostream> #include <string> using namespace std; int main() { int m, d, e, ans; ans = 0; for (m = 1; m <= 12; m++) { for (d = 0; d <= 2; d++) { for (e = 0; e <= 9; e++) { if (m == d + e) { ans++; } } } } ans = ans + 2; cout << ans << endl; return 0; }