Submission #616040
Source Code Expand
#include <bits/stdc++.h> using namespace std; int main(void){ int n; cin >> n; vector<int> a = {25,2525,252525,25252525}; int ret =0; for(int i=0;i<a.size();i++){ ret += max(n,n / a[i]); } cout << n/25 << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - ニコニコ数 |
User | tkzw_21 |
Language | C++ (GCC 4.9.2) |
Score | 0 |
Code Size | 246 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:7:42: error: in C++98 ‘a’ must be initialized by constructor, not by ‘{...}’ vector<int> a = {25,2525,252525,25252525}; ^ ./Main.cpp:7:42: error: could not convert ‘{25, 2525, 252525, 25252525}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<int>’