Submission #7058148
Source Code Expand
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < n; ++i) /* short names and const using ll = long long; using vll = vector<long long>; using df = vector<vector<long long>>; df data(n, vector<long long>(m)); const int MOD = 1e9 + 7; const long long INF = 1e18; */ /* Boost! #include <boost/algorithm/string/classification.hpp> // is_any_of #include <boost/algorithm/string/split.hpp> using boost::algorithm::split; // split(result, s, boost::is_any_of(",")); #include <boost/algorithm/string/join.hpp> using boost::algorithm::join; // string s = join(arr, ""); #include <boost/algorithm/string/replace.hpp> using boost::algorithm::replace_all; // replace_all(s, "AtCoder", "A"); #include <boost/range/algorithm.hpp> // boost::sort(arr) #include <boost/multiprecision/cpp_int.hpp> using boost::multiprecision::cpp_int; */ /* print(arr) template <class T> void print(vector<T> &vec) { for (auto& a : vec) { cout << a; if (&a != &vec.back()) cout << " "; } cout << endl; } */ /* fast cin and precise cout cin.tie(nullptr); ios::sync_with_stdio(false); getline(cin, s); cout << fixed << setprecision(15); */ /* sum function int sum(vector<int> &arr) { int res = accumulate(arr.begin(), arr.end(), 0); return res; } */ int main() { int y; cin >> y; if (y % 400 == 0) { cout << "Yes" << endl; } else if (y % 100 == 0) { cout << "No" << endl; } else if (y % 4 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
Submission Info
Submission Time | |
---|---|
Task | A - うるう年 |
User | Lily0727K |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 1578 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_rnd_00.txt, 01_rnd_01.txt, 01_rnd_02.txt, 01_rnd_03.txt, 01_rnd_04.txt, 01_rnd_05.txt, 01_rnd_06.txt, 01_rnd_07.txt, 01_rnd_08.txt, 01_rnd_09.txt, 01_rnd_10.txt, 01_rnd_11.txt, 01_rnd_12.txt, 01_rnd_13.txt, 01_rnd_14.txt, 01_rnd_15.txt, 01_rnd_16.txt, 01_rnd_17.txt, 01_rnd_18.txt, 01_rnd_19.txt, 02_100_00.txt, 02_100_01.txt, 02_100_02.txt, 02_100_03.txt, 02_100_04.txt, 02_100_05.txt, 02_100_06.txt, 02_100_07.txt, 02_100_08.txt, 02_100_09.txt, 02_100_10.txt, 02_100_11.txt, 02_100_12.txt, 02_100_13.txt, 02_100_14.txt, 02_100_15.txt, 02_100_16.txt, 02_100_17.txt, 02_100_18.txt, 02_100_19.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | WA | 1 ms | 256 KB |
00_sample_01.txt | WA | 1 ms | 256 KB |
00_sample_02.txt | WA | 1 ms | 256 KB |
00_sample_03.txt | WA | 1 ms | 256 KB |
01_rnd_00.txt | WA | 1 ms | 256 KB |
01_rnd_01.txt | WA | 1 ms | 256 KB |
01_rnd_02.txt | WA | 1 ms | 256 KB |
01_rnd_03.txt | WA | 1 ms | 256 KB |
01_rnd_04.txt | WA | 1 ms | 256 KB |
01_rnd_05.txt | WA | 1 ms | 256 KB |
01_rnd_06.txt | WA | 1 ms | 256 KB |
01_rnd_07.txt | WA | 1 ms | 256 KB |
01_rnd_08.txt | WA | 1 ms | 256 KB |
01_rnd_09.txt | WA | 1 ms | 256 KB |
01_rnd_10.txt | WA | 1 ms | 256 KB |
01_rnd_11.txt | WA | 1 ms | 256 KB |
01_rnd_12.txt | WA | 1 ms | 256 KB |
01_rnd_13.txt | WA | 1 ms | 256 KB |
01_rnd_14.txt | WA | 1 ms | 256 KB |
01_rnd_15.txt | WA | 1 ms | 256 KB |
01_rnd_16.txt | WA | 1 ms | 256 KB |
01_rnd_17.txt | WA | 1 ms | 256 KB |
01_rnd_18.txt | WA | 1 ms | 256 KB |
01_rnd_19.txt | WA | 1 ms | 256 KB |
02_100_00.txt | WA | 1 ms | 256 KB |
02_100_01.txt | WA | 1 ms | 256 KB |
02_100_02.txt | WA | 1 ms | 256 KB |
02_100_03.txt | WA | 1 ms | 256 KB |
02_100_04.txt | WA | 1 ms | 256 KB |
02_100_05.txt | WA | 1 ms | 256 KB |
02_100_06.txt | WA | 1 ms | 256 KB |
02_100_07.txt | WA | 1 ms | 256 KB |
02_100_08.txt | WA | 1 ms | 256 KB |
02_100_09.txt | WA | 1 ms | 256 KB |
02_100_10.txt | WA | 1 ms | 256 KB |
02_100_11.txt | WA | 1 ms | 256 KB |
02_100_12.txt | WA | 1 ms | 256 KB |
02_100_13.txt | WA | 1 ms | 256 KB |
02_100_14.txt | WA | 1 ms | 256 KB |
02_100_15.txt | WA | 1 ms | 256 KB |
02_100_16.txt | WA | 1 ms | 256 KB |
02_100_17.txt | WA | 1 ms | 256 KB |
02_100_18.txt | WA | 1 ms | 256 KB |
02_100_19.txt | WA | 1 ms | 256 KB |