QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#260784 | #7755. Game on a Forest | smartyi# | WA | 0ms | 3528kb | C++20 | 411b | 2023-11-22 15:15:58 | 2023-11-22 15:15:58 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define Joyfine ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define int long long
int _=1;
int n, m;
int a[1111],b[1111];
void solve(int ce){
cin >> n >> m ;
for(int i = 1, u, v; i <= m; i++){
cin >> u >> v;
}
cout << (n + m)/ 2;
}
signed main(void)
{
Joyfine;
cin>>_;
for(int i=1;i<=_;i++) solve(i);
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3528kb
input:
3 1 1 2
output:
111
result:
wrong answer 1st numbers differ - expected: '2', found: '111'