Submission #615980
Source Code Expand
#include <iostream> #include <sstream> #include <math.h> #include <stack> #include <set> #include <algorithm> #include <string> #include <queue> #include <stack> #include <map> #include <cstdio> #include <vector> using namespace std; #define INF (1 << 30) #define INFLL (1LL << 60) long long int yaku[6]; int main() { yaku[0] = 25; for(int i = 1;i < 4;i++){ yaku[i] = yaku[i-1] * 100 + 25; } long long int n; cin >> n; long long int ans = 0; for(long long int i = 1;i <= n;i += 1){ for(int j = 0;j < 4;j++){ if(i < yaku[j]) break; if(i % yaku[j] == 0) ans++; } } cout << ans << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - ニコニコ数 |
User | yasu89 |
Language | C++ (GCC 4.9.2) |
Score | 0 |
Code Size | 655 Byte |
Status | WA |
Exec Time | 2564 ms |
Memory | 808 KB |
Judge Result
Set Name | Sample | Subtask1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 60 | ||||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt |
Subtask1 | sample_01.txt, sample_02.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 26 ms | 804 KB |
sample_02.txt | WA | 1076 ms | 804 KB |
test_01.txt | AC | 25 ms | 796 KB |
test_02.txt | AC | 26 ms | 800 KB |
test_03.txt | AC | 24 ms | 804 KB |
test_04.txt | WA | 33 ms | 672 KB |
test_05.txt | WA | 58 ms | 800 KB |
test_06.txt | WA | 1342 ms | 796 KB |
test_07.txt | WA | 293 ms | 804 KB |
test_08.txt | TLE | 2560 ms | 808 KB |
test_09.txt | TLE | 2564 ms | 800 KB |
test_10.txt | TLE | 2559 ms | 804 KB |
test_11.txt | TLE | 2557 ms | 808 KB |
test_12.txt | TLE | 2558 ms | 800 KB |
test_13.txt | WA | 1339 ms | 804 KB |
test_14.txt | AC | 26 ms | 796 KB |
test_15.txt | AC | 26 ms | 684 KB |