QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#162446#5252. DeforestationyinshaziyueWA 26ms42244kbC++17541b2023-09-03 12:34:012023-09-03 12:34:01

Judging History

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

  • [2023-09-03 12:34:01]
  • 评测
  • 测评结果:WA
  • 用时:26ms
  • 内存:42244kb
  • [2023-09-03 12:34:01]
  • 提交

answer

#include<algorithm>
#include<string>
#include<stdio.h>
#include<map>
#include<iostream>
#include<vector>
#include<iomanip>
#include<random>
#include<cmath>
#include<set>
using namespace std;
int m;vector<int>kk(10000000); long long all,cnt;
void input(long long a,long long b) {
	kk[++cnt] = a;
	all += a;
	for (int i = 1; i <= b; i++) {
		long long  a1, b1;
		cin >> a1 >> b1;
		input(a1, b1);
	}
}
int main() {
	cin >> m;
	long long a, b;
	cin >> a >> b;
	input(a, b);
	long long ans = all / m + 1;
	return 0;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 26ms
memory: 42244kb

input:

999900000
7339 3
14947 2
12850 3
8986 10
11599 9
8889 10
10711 4
8015 1
11626 0
9492 1
7017 0
8863 0
8632 0
5321 5
9906 0
11687 0
9845 0
10469 0
11708 0
14950 5
11934 0
11922 0
13101 0
12000 0
9082 0
9273 5
12296 0
6119 0
9201 0
12652 0
12957 0
7454 5
12515 0
12976 0
10358 0
13997 0
8371 0
10181 5
8...

output:


result:

wrong answer 1st lines differ - expected: '1', found: ''