用户输出
banana
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#25611 | #1142. ddd和大象 | Accepted | 100 | 186 ms | 284 K | C / 1.1 K | 经济99-刘雨泽 | 2020-05-29 11:49:51 |
#include <stdio.h>
int main() {
char road[4];
int n;
scanf("%d", &n);
for (int i = 0; i < 4; i++) {
road[i] = 't';
}
while (n > 0) {
int x, y;
scanf("%d %d", &x, &y);
if (x == 0 && y == 0) {
road[0] = 'f';
road[1] = 'f';
road[2] = 'f';
road[3] = 'f';
}
if (x == 0 && y > 0) {
road[0] = 'f';
road[1] = 'f';
road[2] = 'f';
}
if (x == 0 && y < 0) {
road[0] = 'f';
road[2] = 'f';
road[3] = 'f';
}
if (x > 0 && y == 0) {
road[0] = 'f';
road[1] = 'f';
road[3] = 'f';
}
if (x < 0 && y == 0) {
road[1] = 'f';
road[2] = 'f';
road[3] = 'f';
}
if (x > 0 && y > 0) {
road[0] = 'f';
road[1] = 'f';
}
if (x < 0 && y < 0) {
road[2] = 'f';
road[3] = 'f';
}
if (x > 0 && y < 0) {
road[0] = 'f';
road[3] = 'f';
}
if (x < 0 && y > 0) {
road[1] = 'f';
road[2] = 'f';
}
n--;
}
for (int i = 0; i < 4; i++) {
if (road[i] == 't') {
printf("ddd");
return 0;
}
}
printf("banana");
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