CSES - COCI 2006/2007 #4 - Results
Submission details
Task:Sibice
Sender:untokarila
Submission time:2019-07-25 13:52:37 +0300
Language:C++ (C++11)
Status:READY
Result:100
Feedback
groupverdictscore
#1ACCEPTED100
Test results
testverdicttime
#1ACCEPTED0.01 sdetails
#2ACCEPTED0.01 sdetails
#3ACCEPTED0.01 sdetails
#4ACCEPTED0.01 sdetails
#5ACCEPTED0.01 sdetails
#6ACCEPTED0.01 sdetails
#7ACCEPTED0.01 sdetails
#8ACCEPTED0.01 sdetails
#9ACCEPTED0.01 sdetails
#10ACCEPTED0.01 sdetails

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