用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#46356 | #1151. 把你挂在地灵殿门口当装饰品! | Wrong Answer | 5 | 363 ms | 3956 K | C++ / 617 B | Komeiji Satori | 2020-09-20 14:46:10 |
#include <cstdio>
#include <cstdlib>
#define maxn (int)(1e5 * 2)
#define ll long long
using namespace std;
ll a[maxn + 10], s[maxn + 10];
int book[maxn + 10], p[maxn + 10], cnt = 0;
int main() {
int n, i, tot = 0;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%lld", &a[i]);
s[i] = s[i - 1] + a[i];
if (a[i] < a[i - 1]) {
book[i] = 1;
p[++tot] = i;
}
}
tot++;
if (tot > 3)
printf("-1 -1");
else if (tot == 3) {
// if(s[p[2]]==(ll)(p[2]-1)*(ll)p[2]/2){
printf("%d %d", p[1] - 1, p[1] - 1);
// }
// else printf("-1 -1");
} else if (tot == 2) {
printf("%d %d", 0, p[1] - 1);
} else {
printf("0 %d", n);
}
return 0;
}
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
3 3
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
3 3
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
0 6
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 2 3 4 5 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 3
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 2 3 4 5 6 7 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 3
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 30 31 32 34 35 36 37
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 2 4 5 7 8 9 12 13 14 16 18 19 21 22 23 25 27 29 30 33 35 38 40 41 42 43 44 47 50 51 52 53
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 4 5 9 10 11 13 14 15 16 20 21 25 26 28 31 32 33 35 36 37 38 39 40 41 42 45 46 47 56 58 59
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 4 5 6 7 9 10 11 16 19 20 21 22 23 29 33 38 40 41 42 43 44 49 50 51 52 54 55 57 60 61 63 64
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
3 4 9 11 13 14 15 18 20 22 23 24 25 27 30 32 34 37 40 43 44 47 48 49 50 51 60 62 63 65 67 69
<1288805 bytes omitted>
用户输出
-1 -1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0