QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#292095#6310. Dining ProfessorsluhanningWA 9ms4380kbC++20263b2023-12-27 18:06:092023-12-27 18:06:10

Judging History

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

  • [2023-12-27 18:06:10]
  • 评测
  • 测评结果:WA
  • 用时:9ms
  • 内存:4380kb
  • [2023-12-27 18:06:09]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

#define int long long 

const int N = 100010;

int b[N];

signed main()
{
	int n,a;
	cin >>n>>a;
	int cnt = 0;
	for(int i = 1;i <= n;i ++)
	{
		cin >>b[i];
	}
	cout<<a * a + (n - a) * (n - a);
} 

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 2
1 0 1 0 1

output:

13

result:

ok 1 number(s): "13"

Test #2:

score: -100
Wrong Answer
time: 9ms
memory: 4380kb

input:

100000 33292
1 1 1 1 0 1 1 0 0 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 1 1 1 0 1 0 0 1 1 0 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 1 0 1 1 1 0 1 0 0 0 1 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 1 1 1 1 0 1 0 0 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 1 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 0 0...

output:

5558314528

result:

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