QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#97385 | #4439. Link with Equilateral Triangle | 3360550356# | WA | 4ms | 3264kb | C++14 | 1.3kb | 2023-04-16 18:05:41 | 2023-04-16 18:05:42 |
Judging History
answer
#include<bits/stdc++.h>
#define endl '\n'
#define int long long
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> PII;
const int N = 3e5+10;
const int M = 2e6 + 10;
const int mod = 1e9+7;
const int INF=1e9;
const double PI=acos(-1);
const double eps=1e-10;
void solve(){
int n;
cin>>n;
// cout<<"NO"<<endl;
if(n%3==0){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
}
signed main() {
// std::ios::sync_with_stdio(false);
// std::cin.tie(0);
int T=1;
cin>>T;
while(T--) {
solve();
}
}
/**
* ┏┓ ┏┓+ +
* ┏┛┻━━━┛┻┓ + +
* ┃ ┃
* ┃ ━ ┃ ++ + + +
* ████━████+
* ◥██◤ ◥██◤ +
* ┃ ┻ ┃
* ┃ ┃ + +
* ┗━┓ ┏━┛
* ┃ ┃ + + + +Code is far away from
* ┃ ┃ + bug with the animal protecting
* ┃ ┗━━━┓ 神兽保佑,代码无bug
* ┃ ┣┓
* ┃ ┏┛
* ┗┓┓┏━┳┓┏┛ + + + +
* ┃┫┫ ┃┫┫
* ┗┻┛ ┗┻┛+ + + +
*/
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 4ms
memory: 3264kb
input:
1000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101...
output:
NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES NO NO YES ...
result:
wrong answer 1st lines differ - expected: 'No', found: 'NO'