Contest Duration: - (local time) (90 minutes) Back to Home

Submission #171567

Source Code Expand

Copy
```#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <stack>
#include <queue>
#include <cctype>
#include <complex>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <cassert>
#include <iomanip>

using namespace std;

#define pb push_back
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
typedef long long ll;
typedef complex<int> P;
typedef pair<int,int> pii;
const double EPS = 1e-10;
const double PI  = acos(-1.0);
template <class F, class T> void convert(const F &f, T &t){	stringstream ss; ss << f; ss >> t;}

int f(int y, int m, int d){
if(m <= 2){
y--;
m += 12;
}
int res = 365 * y + (y/4) - (y/100) + (y/400) + (306 * (m+1) / 10) + d - 429;
return res;
}

bool solve(){
int y, m, d;
cin>> y>> m>> d;

int ans = f(2014, 5, 17) - f(y, m, d);
cout<< ans<< endl;
return true;
}

int main(){
cout.setf(ios::fixed); cout.precision(10);
solve();
return 0;
}

```

#### Submission Info

Submission Time 2014-05-17 21:13:33+0900 A - 経過日数 yokabb C++ (G++ 4.6.4) 100 1061 Byte AC 21 ms 924 KB

#### Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
 AC × 4
 AC × 24
Set Name Test Cases
Case Name Status Exec Time Memory
subtask0_sample01.txt AC 19 ms 796 KB
subtask0_sample02.txt AC 21 ms 920 KB
subtask0_sample03.txt AC 20 ms 672 KB
subtask0_sample04.txt AC 20 ms 800 KB
subtask1_01.txt AC 19 ms 796 KB
subtask1_02.txt AC 19 ms 800 KB
subtask1_03.txt AC 19 ms 672 KB
subtask1_04.txt AC 19 ms 796 KB
subtask1_05.txt AC 20 ms 800 KB
subtask1_06.txt AC 20 ms 804 KB
subtask1_07.txt AC 20 ms 792 KB
subtask1_08.txt AC 20 ms 800 KB
subtask1_09.txt AC 21 ms 796 KB
subtask1_10.txt AC 19 ms 796 KB
subtask1_11.txt AC 20 ms 796 KB
subtask1_12.txt AC 19 ms 792 KB
subtask1_13.txt AC 20 ms 808 KB
subtask1_14.txt AC 20 ms 804 KB
subtask1_15.txt AC 20 ms 800 KB
subtask1_16.txt AC 20 ms 924 KB
subtask1_17.txt AC 20 ms 672 KB
subtask1_18.txt AC 20 ms 676 KB
subtask1_19.txt AC 21 ms 916 KB
subtask1_20.txt AC 21 ms 796 KB