用户输出
banana
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#24307 | #1142. ddd和大象 | Accepted | 100 | 146 ms | 1144 K | C++ 11 / 712 B | Rhodoks | 2020-04-23 17:31:31 |
#include <bits/stdc++.h>
#define DB double
#define LL long long
#define MST(a, b) memset((a), (b), sizeof(a))
#define MRK() cout << "Mark" << endl;
#define WRT(x) cout << #x << " = " << (x) << endl;
#define MAXN 210000
#define MAXM 410000
#define MOD 998244353
#define INF 0x3f3f3f3f
#define LLINF 0x3f3f3f3f3f3f3f3f
#define EPS 1e-5
#define _ 0
using namespace std;
int n;
int x[MAXN], y[MAXN];
int ans = 0;
int main() {
cin >> n;
for (int i = 0; i < n; i++) {
scanf("%d%d", &x[i], &y[i]);
if (x[i] >= 0)
ans |= 1;
if (x[i] <= 0)
ans |= 2;
if (y[i] >= 0)
ans |= 4;
if (y[i] <= 0)
ans |= 8;
}
if (ans == 15)
cout << "banana" << endl;
else
cout << "ddd" << endl;
return ~~(0 ^ _ ^ 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