Submission #3010322
Source Code Expand
#include <bits/stdc++.h> using namespace std; int main() { long long a,b,sum=0; cin>>a>>b; for(int year=a; year<=b; year++) { if(year%100!=0) { if(year%4==0) sum++; } else { if(year%400==0 && year%3200!=0) sum++; } } cout<<sum; return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - 2月29日 |
User | WyfATCoder |
Language | C++ (GCC 5.4.1) |
Score | 25 |
Code Size | 283 Byte |
Status | WA |
Exec Time | 2103 ms |
Memory | 256 KB |
Judge Result
Set Name | sub | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 25 / 25 | 0 / 75 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
sub | test_01A.txt, test_02A.txt, test_03A.txt, test_04A.txt, test_05A.txt, test_07A.txt, test_09A.txt, test_11A.txt, test_13A.txt, test_15A.txt |
All | sample_01.txt, sample_02.txt, sample_03.txt, test_01A.txt, test_02A.txt, test_03A.txt, test_04A.txt, test_05A.txt, test_06.txt, test_07A.txt, test_08.txt, test_09A.txt, test_10.txt, test_11A.txt, test_12.txt, test_13A.txt, test_14.txt, test_15A.txt, test_16.txt, sample_01.txt, sample_02.txt, sample_03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 1 ms | 256 KB |
sample_02.txt | AC | 1 ms | 256 KB |
sample_03.txt | TLE | 2103 ms | 256 KB |
test_01A.txt | AC | 1 ms | 256 KB |
test_02A.txt | AC | 1 ms | 256 KB |
test_03A.txt | AC | 1 ms | 256 KB |
test_04A.txt | AC | 1 ms | 256 KB |
test_05A.txt | AC | 1 ms | 256 KB |
test_06.txt | TLE | 2103 ms | 256 KB |
test_07A.txt | AC | 1 ms | 256 KB |
test_08.txt | WA | 430 ms | 256 KB |
test_09A.txt | AC | 1 ms | 256 KB |
test_10.txt | WA | 602 ms | 256 KB |
test_11A.txt | AC | 1 ms | 256 KB |
test_12.txt | WA | 299 ms | 256 KB |
test_13A.txt | AC | 1 ms | 256 KB |
test_14.txt | WA | 118 ms | 256 KB |
test_15A.txt | AC | 1 ms | 256 KB |
test_16.txt | WA | 361 ms | 256 KB |