Submission #616101
Source Code Expand
#define _CRT_SECURE_NO_WARNINGS #include<sstream> #include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<climits> #include<cmath> #include<string> #include<vector> #include<set> #include<map> #include<queue> #include<numeric> #include<functional> #include<algorithm> #include<bitset> #include<tuple> #include<unordered_set> #include<random> using namespace std; #define INF (1<<29) #define rep(i,n) for(int i=0;i<(int)(n);i++) #define all(v) v.begin(),v.end() #define uniq(v) v.erase(unique(all(v)),v.end()) int main() { ios::sync_with_stdio(0); cin.tie(0); int a[] = { 25,2525,252525,25252525 }; int n; cin >> n; long long ans = 0, x; x = n / a[3]; ans += x; x = n / a[2] - ans; ans += x; x = n / a[1] - ans; ans += x; x = n / a[0] - ans; ans += x; cout << ans << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - ニコニコ数 |
User | hirokazu1020 |
Language | C++ (GCC 4.9.2) |
Score | 0 |
Code Size | 884 Byte |
Status | CE |
Compile Error
In file included from /usr/include/c++/4.9/tuple:35:0, from ./Main.cpp:18: /usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support for the \ ^