QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#714780#9281. A Non-Palindromic ModificationNULLtheMOMENTWA 0ms3620kbC++20753b2024-11-06 07:12:522024-11-06 07:12:53

Judging History

你现在查看的是最新测评结果

  • [2024-11-06 07:12:53]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3620kb
  • [2024-11-06 07:12:52]
  • 提交

answer

#include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
 
using namespace std;
 
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<bool> vb;
typedef long double ld;
const ll mod = 1e9 + 7;
struct point {double x,y;};
typedef unsigned long long ull;
typedef pair<ll,ll> pll;
const ll inf = 1LL << 62;

void solve() {
	int n; cin >> n;
	rep(i,0,n) {
		int t; cin >> t;
	}
	if(n == 1) cout << 0 << endl;
	else cout << 1 << endl;
}

int main() {
		//ifstream in("hps.in");
		//ofstream out("hps.out");
    int t; cin >> t;
    rep(i,0,t)
    solve();
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3560kb

input:

1
1

output:

0

result:

ok answer is '0'

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3620kb

input:

2
20
21

output:

1
1

result:

wrong output format Extra information in the output file