Task: | Sibice |
Sender: | untokarila |
Submission time: | 2019-07-25 13:52:37 +0300 |
Language: | C++ (C++11) |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 100 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.01 s | details |
#2 | ACCEPTED | 0.01 s | details |
#3 | ACCEPTED | 0.01 s | details |
#4 | ACCEPTED | 0.01 s | details |
#5 | ACCEPTED | 0.01 s | details |
#6 | ACCEPTED | 0.01 s | details |
#7 | ACCEPTED | 0.01 s | details |
#8 | ACCEPTED | 0.01 s | details |
#9 | ACCEPTED | 0.01 s | details |
#10 | ACCEPTED | 0.01 s | details |
Code
#include <bits/stdc++.h> #define ld long double using namespace std; int main(){ int n; ld w, h; cin >> n >> w >> h; ld m = sqrt(w*w+h*h); for(int i=0; i<n; i++){ ld t; cin >> t; if(t>m) cout << "NE\n"; else cout << "DA\n"; } return 0; }
Test details
Test 1
Verdict: ACCEPTED
input |
---|
10 10 10
10 6 17 8 ... |
correct output |
---|
DA
DA NE DA DA ... |
user output |
---|
DA DA NE DA DA ... |
Test 2
Verdict: ACCEPTED
input |
---|
50 3 4
5 6 3 2 ... |
correct output |
---|
DA
NE DA DA NE ... |
user output |
---|
DA NE DA DA NE ... Truncated |
Test 3
Verdict: ACCEPTED
input |
---|
45 34 23
42 51 43 55 ... |
correct output |
---|
NE
NE NE NE NE ... |
user output |
---|
NE NE NE NE NE ... Truncated |
Test 4
Verdict: ACCEPTED
input |
---|
45 34 54
52 6 29 37 ... |
correct output |
---|
DA
DA DA DA DA ... |
user output |
---|
DA DA DA DA DA ... Truncated |
Test 5
Verdict: ACCEPTED
input |
---|
50 80 80
96 26 6 66 ... |
correct output |
---|
DA
DA DA DA DA ... |
user output |
---|
DA DA DA DA DA ... Truncated |
Test 6
Verdict: ACCEPTED
input |
---|
50 90 90
162 153 159 143 ... |
correct output |
---|
NE
NE NE NE NE ... |
user output |
---|
NE NE NE NE NE ... Truncated |
Test 7
Verdict: ACCEPTED
input |
---|
50 93 10
97 97 56 27 ... |
correct output |
---|
NE
NE DA DA DA ... |
user output |
---|
NE NE DA DA DA ... Truncated |
Test 8
Verdict: ACCEPTED
input |
---|
34 45 56
82 65 6 56 ... |
correct output |
---|
NE
DA DA DA NE ... |
user output |
---|
NE DA DA DA NE ... Truncated |
Test 9
Verdict: ACCEPTED
input |
---|
50 100 100
3 194 1 129 ... |
correct output |
---|
DA
NE DA DA DA ... |
user output |
---|
DA NE DA DA DA ... Truncated |
Test 10
Verdict: ACCEPTED
input |
---|
50 100 100
105 127 127 123 ... |
correct output |
---|
DA
DA DA DA DA ... |
user output |
---|
DA DA DA DA DA ... Truncated |