用户输出
3
-41 -28 16
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#101169 | #1429. [L1-6] 序列变换 | Wrong Answer | 90 | 273 ms | 16284 K | C++ 17 / 552 B | 姜宇骋 | 2024-03-07 0:05:59 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
const int maxn = 5e6 + 5;
int fuck[maxn];
int *b;
int *a;
signed main() {
b = fuck + (1000);
a = fuck + (3000000);
ios::sync_with_stdio(0);
int n;
cin >> n;
cout << n << "\n";
if (n % 3 == 2) {
cout << "Inf";
return 0;
}
for (int i = 1; i <= n; ++i) {
cin >> b[i];
}
for (int i = n; i >= 0; i -= 3) {
a[i - 2] = a[i + 1] - b[i] + b[i - 1];
}
a[3 - (n + 1) % 3] = b[1] - a[(n + 1) % 3];
for (int i = 1; i < n; ++i) {
a[i + 2] = a[i - 1] + b[i + 1] - b[i];
}
for (int i = 1; i <= n; ++i) {
cout << a[i] << " ";
}
}
用户输出
10
0 0 1 -1 -1 0 1 0 -1 1
系统信息
Exited with return code 0
用户输出
10
0 0 0 -1 1 -1 0 0 -1 1
系统信息
Exited with return code 0
300
20778 32661 378962 84582 213361 -18436 294991 74828 359112 -116502 -166603 -539605 -91390 -54873
<2056 bytes omitted>
300
-192242 213020 11883 154059 -81360 140662 -77738 232067 -79501 206546 -243547 -129602 -166456 20
<2021 bytes omitted>
用户输出
300
-192242 213020 11883 154059 -81360 140662 -77738 232067 -79501 206546 -243547 -129602 -166456 204668 -93085 -175487 212182 -
<1993 bytes omitted>
系统信息
Exited with return code 0
1001
-116206 -144954 -94615 -242714 -100983 -172762 -145855 -508409 -75076 222786 647272 415357 3367
<7135 bytes omitted>
用户输出
1001
Inf
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
1000
93530 -149099 -220926 -138723 -47782 30417 -107737 -68164 -30697 -130301 43904 47908 -97736 858
<7078 bytes omitted>
1000
17408 76122 -242629 -54419 158325 -151688 23780 20171 -112115 61247 -79433 62090 65251 -225077
<6977 bytes omitted>
用户输出
1000
17408 76122 -242629 -54419 158325 -151688 23780 20171 -112115 61247 -79433 62090 65251 -225077 245646 241116 212971 160517
<6949 bytes omitted>
系统信息
Exited with return code 0
1000000
94007363 -91951426 -182069840 35255498 -14225192 -110490460 -308662458 -128799180 160528797
<10255620 bytes omitted>
1000000
113606716 -19599353 -185958789 23488302 197725985 -235439479 -72776966 -446013 -55576201 216
<10120619 bytes omitted>
用户输出
1000000
113606716 -19599353 -185958789 23488302 197725985 -235439479 -72776966 -446013 -55576201 216551011 -46959388 207884159 1
<10120591 bytes omitted>
系统信息
Exited with return code 0
99999
3269544 -201110663 -62143429 58995167 197536346 -244905726 -441852087 -623847193 -665841219 -6
<1025417 bytes omitted>
99999
109855531 -106585987 -204380207 248822765 14552609 -65839028 -193619307 -182393752 -247834134
<1011877 bytes omitted>
用户输出
99999
109855531 -106585987 -204380207 248822765 14552609 -65839028 -193619307 -182393752 -247834134 -235613333 -180551918 167531
<1011849 bytes omitted>
系统信息
Exited with return code 0
11451
-71348711 124300097 -73368654 -117756621 -107837863 -30473424 86123134 -186387962 -43696400 -1
<117360 bytes omitted>
11451
103847084 -175195795 195648808 -93821667 -219583762 205567566 -16457228 -102987204 -66943530 1
<115829 bytes omitted>
用户输出
11451
103847084 -175195795 195648808 -93821667 -219583762 205567566 -16457228 -102987204 -66943530 126234334 -226989374 32458325
<115801 bytes omitted>
系统信息
Exited with return code 0