用户输出
banana
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#25407 | #1142. ddd和大象 | Accepted | 100 | 232 ms | 1912 K | C++ / 440 B | lvcs | 2020-04-29 13:50:29 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n = 0;
ll x[100006] = { 0 };
ll y[100006] = { 0 };
ll r = 1, l = 1, u = 1, d = 1;
int main() {
ll i, s = 0;
cin >> n;
for (i = 0; i < n; i++) {
cin >> x[i] >> y[i];
if (x[i] >= 0)
r = 0;
if (x[i] <= 0)
l = 0;
if (y[i] >= 0)
u = 0;
if (y[i] <= 0)
d = 0;
s = r + l + u + d;
if (s == 0) {
cout << "banana" << endl;
return 0;
}
}
cout << "ddd" << endl;
return (0);
}
100000
-1000000000 -1000000000
-1000000000 -1000000000
-1000000000 -1000000000
-1000000000 -10000000
<2399907 bytes omitted>
用户输出
ddd
系统信息
Exited with return code 0
100000
-571340417 463560346
403124531 -797547705
-758821057 -514451613
831005957 -500699947
-6422173
<2077792 bytes omitted>
用户输出
banana
系统信息
Exited with return code 0
100000
-438108394 170968360
-234057734 -829803060
-262258987 -231854118
-922675242 943352998
2528484
<2077959 bytes omitted>
用户输出
banana
系统信息
Exited with return code 0
100000
-549857431 345016800
-412131138 556921917
7246642 -464357808
-975496833 602878280
445593594 8
<2077557 bytes omitted>
用户输出
banana
系统信息
Exited with return code 0
100000
678089562 538953470
258583896 912487915
420506774 510970659
128240660 405522019
958653829 394
<2027598 bytes omitted>
用户输出
ddd
系统信息
Exited with return code 0
100000
61058594 -659126515
632527415 -498875302
-883598349 -754477065
-813784284 -741617825
-3903755
<2127879 bytes omitted>
用户输出
ddd
系统信息
Exited with return code 0
5
637698483 -974613293
-928109931 465894288
70394878 -224931957
768070863 594202926
766088780 955236
<3 bytes omitted>
用户输出
banana
系统信息
Exited with return code 0