結果
問題 | No.188 HAPPY DAY |
ユーザー | yukiteru |
提出日時 | 2017-10-08 10:33:04 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 646 bytes |
コンパイル時間 | 597 ms |
コンパイル使用メモリ | 76,904 KB |
実行使用メモリ | 4,376 KB |
最終ジャッジ日時 | 2023-08-30 01:28:36 |
合計ジャッジ時間 | 1,091 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
ソースコード
#include<iostream> #include<string> #include<string.h> #include<algorithm> #include<stdio.h> #include<cmath> #include<vector> #include<utility> #include<stack> #include<queue> #include<list> #define FOR(i, a, b) for(int i=(a);i<=(b);i++) #define RFOR(i, a, b) for(int i=(a);i>=(b);i--) #define MOD 1000000007 #define INF 1000000001; using namespace std; int main(void) { int count = 0; FOR(x, 1, 12) { FOR(y, 1, 31) { if (x == y / 10 + y % 10) { count++; } if ((x == 4 || x == 6 || x == 9 || x == 11) && (y == 30)) { break; } if (x == 2 && y == 28) { break; } } } cout << count << endl; return 0; }