QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#260785#7755. Game on a Forestsmartyi#WA 0ms3696kbC++20413b2023-11-22 15:16:262023-11-22 15:16:27

Judging History

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

  • [2023-11-22 15:16:27]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3696kb
  • [2023-11-22 15:16:26]
  • 提交

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);
}

詳細信息

Test #1:

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

input:

3 1
1 2

output:

2

result:

ok 1 number(s): "2"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

4 3
1 2
2 3
3 4

output:

3

result:

ok 1 number(s): "3"

Test #3:

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

input:

100000 1
4647 17816

output:

50000

result:

wrong answer 1st numbers differ - expected: '1', found: '50000'