結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2016-07-20 18:51:13 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 691 bytes |
コンパイル時間 | 1,433 ms |
コンパイル使用メモリ | 158,228 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-12-31 00:57:48 |
合計ジャッジ時間 | 1,458 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
// g++ -std=c++11 temp.cpp#include <bits/stdc++.h>using namespace std;#define FOR(i,a,b) for(int i=(int)(a);i<(int)(b);i++)#define REP(i,n) FOR(i,0,n)#define EACH(itr,v) for(auto itr:v)#define pb(s) push_back(s)#define mp(a,b) make_pair(a,b)#define all(x) (x).begin(),(x).end()#define dbg(x) cout<<#x"="<<x<<endltypedef long long ll;typedef unsigned long long ull;typedef pair<int, int> P;typedef pair<P, int> PPI;#define INF INT_MAX/3#define MAX_N 1000int day[] = {31,28,31,30,31,30,31,31,30,31,30,31};int main(){int res = 0;REP(i,12){REP(j,day[i]){int month = i+1, day = j+1;if(month == day/10 + day%10) res++;}}cout<<res<<endl;return 0;}