用户输出
Inf
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#101170 | #1429. [L1-6] 序列变换 | Wrong Answer | 10 | 100 ms | 2092 K | C++ 17 / 554 B | 姜宇骋 | 2024-03-07 0:06:44 |
#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;
if (n % 3 == 2) {
cout << "Inf";
return 0;
}
cout << n << "\n";
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] << " ";
}
}
用户输出
Inf
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
Inf
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
10
0 0 -2 1 0 -3 2 -1 -1 2
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
10
-2 1 0 -1 0 3 -2 -1 3 -4
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
1000
-293 119 -631 246 -101 -236 -68 25 -606 626 -559 -213 -155 -1 462 806 339 365 -46 496 454 504 6
<4192 bytes omitted>
1000
-32 -293 151 -338 95 237 -331 -305 356 -301 270 -258 -483 103 482 359 324 -20 41 -26 455 480 49
<4192 bytes omitted>
用户输出
1000
-7197 6904 412 -7947 7781 65 -8082 7949 158 -8713 9181 -1027 -8367 9239 -873 -7904 9583 -1340 -7878 9172 -798 -7920 9222 -6
<5158 bytes omitted>
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
1000
9 -449 -61 -108 271 -112 739 -80 648 634 -123 531 -361 135 16 -240 154 127 148 529 -190 -213 -8
<4182 bytes omitted>
1000
-210 9 -239 -70 131 341 -243 398 163 250 471 -373 60 12 75 4 -315 150 442 -2 87 -188 -300 107 8
<4182 bytes omitted>
用户输出
1000
-2234 2243 -458 -1846 2196 -79 -2229 3047 -898 -1501 3033 -1655 -847 2141 -1159 -966 1885 -765 -993 1906 -384 -1712 1883 -2
<5118 bytes omitted>
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
10001
61 273 120 -18 40 236 -372 50 -666 -99 -791 321 -367 182 507 453 362 19 28 -941 306 -969 671 -
<42744 bytes omitted>
用户输出
Inf
系统信息
Exited with return code 0
100000
-245033200 269057026 -444307583 12738569 -2572768 -10255372 -2437516 -41423001 44403267 -2472
<1016729 bytes omitted>
100000
108942099 -245033200 160114927 -199274383 -147376358 196701615 137120986 -199139131 -17854398
<1011741 bytes omitted>
用户输出
100000
-410806161 165772961 514090226 -1124170770 622819113 498778889 -1131853374 630636969 459793404 -1046027106 338942155 1170
<1219464 bytes omitted>
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
100000
142956745 326311724 185848189 102625101 200830050 -115640813 333907651 -166296483 399441282 -
<1015936 bytes omitted>
100000
109781724 142956745 216530000 42891444 -113904899 157938606 -1735914 175969045 -164560569 223
<1011548 bytes omitted>
用户输出
100000
90653176836 -90510220091 183354979 90512713301 -90593443179 281559928 90196242438 -90143894715 -218644206 90761980203 -90
<1262906 bytes omitted>
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
100000
-54394293 -28181679 128662233 -260235512 307048828 -340128627 21628743 -100509964 -32690440 2
<1016350 bytes omitted>
100000
110545068 -54394293 -138726747 183056526 -121508765 123992302 -218619862 -102363559 118109898
<1012125 bytes omitted>
用户输出
100000
46216221704 -46270615997 26212614 46373065616 -46659513742 593496954 45725888161 -46297756372 471358247 45793707685 -4597
<1223818 bytes omitted>
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0