QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#605696 | #9281. A Non-Palindromic Modification | lym# | WA | 0ms | 3860kb | C++20 | 424b | 2024-10-02 18:49:07 | 2024-10-02 18:49:09 |
Judging History
answer
#include<bits/stdc++.h>
using i64 = long long;
void solve() {
int n;
std::cin >> n;
std::vector<int> a(n + 1);
for (int i = 1; i <= n; i ++) {
std::cin >> a[i];
}
if (n & 1) {
std::cout << 0 << '\n';
} else {
std::cout << 1 << '\n';
}
}
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int t = 1;
//std::cin >> t;
while (t --) {
solve();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3772kb
input:
1 1
output:
0
result:
ok answer is '0'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
2 20 21
output:
1
result:
ok answer is '1'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
1 522
output:
0
result:
ok answer is '0'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
2 575 426
output:
1
result:
ok answer is '1'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
1 445
output:
0
result:
ok answer is '0'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
1000 772 81 447 629 497 202 775 325 982 784 417 156 932 902 728 537 857 739 918 211 679 506 340 568 868 16 940 263 593 449 991 310 355 68 431 580 757 218 934 328 676 355 221 80 922 545 511 67 467 674 691 504 835 34 965 980 221 895 501 152 325 731 302 153 896 22 489 399 607 466 432 502 968 333 475 79...
output:
1
result:
ok answer is '1'
Test #7:
score: -100
Wrong Answer
time: 0ms
memory: 3548kb
input:
545 549 554 967 215 289 925 19 141 583 969 119 15 281 993 200 835 518 781 616 865 920 504 545 881 783 490 214 82 285 943 307 164 976 933 47 95 812 978 593 714 422 797 536 565 466 936 26 359 181 581 182 144 179 589 994 232 794 322 333 719 246 646 62 19 147 770 291 397 862 617 643 611 925 274 973 64 4...
output:
0
result:
wrong answer expected '1', found '0'