結果
問題 | No.188 HAPPY DAY |
ユーザー | mamekin |
提出日時 | 2015-05-24 13:47:37 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 674 bytes |
コンパイル時間 | 708 ms |
コンパイル使用メモリ | 87,936 KB |
実行使用メモリ | 4,376 KB |
最終ジャッジ日時 | 2023-08-29 02:09:56 |
合計ジャッジ時間 | 1,352 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
ソースコード
#include <cstdio> #include <iostream> #include <sstream> #include <fstream> #include <iomanip> #include <algorithm> #include <cmath> #include <string> #include <vector> #include <list> #include <queue> #include <stack> #include <set> #include <map> #include <bitset> #include <numeric> #include <limits> #include <climits> #include <cfloat> #include <functional> using namespace std; int main() { int days[] = {-1, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int ans = 0; for(int x=1; x<=12; ++x){ for(int y=1; y<=days[x]; ++y){ if(x == y / 10 + y % 10) ++ ans; } } cout << ans << endl; return 0; }