結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2016-09-10 00:01:22 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 294 bytes |
コンパイル時間 | 439 ms |
コンパイル使用メモリ | 55,720 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-12-31 01:05:33 |
合計ジャッジ時間 | 848 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#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 + 1; cout << ans << endl; return 0; }