Submission #58253816
Source Code Expand
// 如果命运对你缄默, 那就活给他看。
#pragma GCC optimize(1)
#pragma GCC optimize(2)
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast", "inline", "-ffast-math")
#pragma GCC target("avx,sse2,sse3,sse4,mmx")
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
// #define int LL
signed main() {
// freopen(".in", "r", stdin);
// freopen(".out", "w", stdout);
ios :: sync_with_stdio(false);
cin.tie(0), cout.tie(0);
int x;
cin >> x;
if(x % 4 == 0) {
if(x % 100 == 0) {
if(x % 400 == 0) {
cout << 366;
} else cout << 365;
} else cout << 366 << '\n';
} else cout << 365;
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Leap Year |
| User | Caesium |
| Language | C++ 20 (gcc 12.2) |
| Score | 100 |
| Code Size | 658 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3592 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt |
| All | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_01.txt | AC | 1 ms | 3392 KiB |
| 00_sample_02.txt | AC | 1 ms | 3408 KiB |
| 00_sample_03.txt | AC | 1 ms | 3320 KiB |
| 00_sample_04.txt | AC | 1 ms | 3592 KiB |
| 01_test_01.txt | AC | 1 ms | 3460 KiB |
| 01_test_02.txt | AC | 1 ms | 3404 KiB |
| 01_test_03.txt | AC | 1 ms | 3320 KiB |
| 01_test_04.txt | AC | 1 ms | 3512 KiB |
| 01_test_05.txt | AC | 1 ms | 3460 KiB |
| 01_test_06.txt | AC | 1 ms | 3460 KiB |
| 01_test_07.txt | AC | 1 ms | 3464 KiB |
| 01_test_08.txt | AC | 1 ms | 3432 KiB |
| 01_test_09.txt | AC | 1 ms | 3408 KiB |
| 01_test_10.txt | AC | 1 ms | 3380 KiB |