QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#97382#4439. Link with Equilateral Triangle3360550356#WA 8ms3396kbC++141.2kb2023-04-16 18:03:322023-04-16 18:03:33

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-04-16 18:03:33]
  • 评测
  • 测评结果:WA
  • 用时:8ms
  • 内存:3396kb
  • [2023-04-16 18:03:32]
  • 提交

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;
	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: 8ms
memory: 3396kb

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'