CSES - COCI 2006/2007 #4 - Results
Submission details
Task:Sibice
Sender:henrikaalto
Submission time:2019-07-25 13:47:50 +0300
Language:C++17
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>
using namespace std;
#define all(x) x.begin(), x.end()
#define F first
#define S second
using pi=pair<int,int>;
using ii=long long;
int main()
{
    int n, w, h;
    cin >> n >> w >> h;
    int z = h * h + w * w;
    for (int i = 0; i < n; ++i) {
        int x;
        cin >> x;
        if (x * x <= z) {
            cout << "DA\n";
        }
        else cout << "NE\n";
    }
}

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
...

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
...

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
...

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
...

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
...

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
...

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
...

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
...

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
...