Submission #154684
Source Code Expand
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < (int)n; ++i) #define repf(i, f, l) for(int i = f; i < (int)l; ++i) #define repit(it, t) for(__typeof((t).begin()) it = (t).begin(); it != (t).end(); it++) #define endl "\n" #ifdef ONLINE_JUDGE #define DEBUG false #else #define DEBUG true #endif #define pb emplace_back #define lb lower_bound #define ul unsigned long #define ull unsigned long long #define ll long long #define INF 1000000007 #define MOD 1000000007 #define fs first #define sd second #define DBG0(x) if(DEBUG){ cout << #x << ": " << x << "\t"; } #define DBG(x) if(DEBUG){DBG0(x); cout << endl;} #define DBG2(x, y) if(DEBUG){DBG0(x); DBG(y);} #define DBG3(x, y, z) if(DEBUG){DBG0(x); DBG2(y, z);} #define DBG4(w, x, y, z) if(DEBUG){DBG0(w); DBG3(x, y, z);} typedef vector<int> vint; typedef vector<ll> vll; typedef vector<ul> vul; typedef vector<ull> vull; typedef vector<bool> vbl; typedef pair<int, int> pii; int main(void){ ios::sync_with_stdio(false); int n; cin >> n; if(n % 3 == 0) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 世界のFizzBuzz |
User | numa |
Language | C++11 (GCC 4.8.1) |
Score | 100 |
Code Size | 1193 Byte |
Status | AC |
Exec Time | 25 ms |
Memory | 968 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_1.txt, test_2.txt, test_3.txt, test_4.txt, test_5.txt, test_6.txt, test_7.txt, test_8.txt, test_9.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 24 ms | 876 KB |
sample_02.txt | AC | 23 ms | 968 KB |
sample_03.txt | AC | 24 ms | 860 KB |
test_1.txt | AC | 22 ms | 924 KB |
test_2.txt | AC | 25 ms | 920 KB |
test_3.txt | AC | 23 ms | 864 KB |
test_4.txt | AC | 23 ms | 924 KB |
test_5.txt | AC | 23 ms | 856 KB |
test_6.txt | AC | 21 ms | 920 KB |
test_7.txt | AC | 21 ms | 924 KB |
test_8.txt | AC | 23 ms | 856 KB |
test_9.txt | AC | 21 ms | 920 KB |