QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#260784#7755. Game on a Forestsmartyi#WA 0ms3528kbC++20411b2023-11-22 15:15:582023-11-22 15:15:58

Judging History

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

  • [2023-11-22 15:15:58]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3528kb
  • [2023-11-22 15:15:58]
  • 提交

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'