QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#744825 | #9717. Defuse the Bombs | oqmsac | WA | 15ms | 3644kb | C++23 | 558b | 2024-11-13 23:41:17 | 2024-11-13 23:41:17 |
Judging History
answer
#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define ld long double
#define pii pair<ll,ll>
using namespace std;
#pragma GCC optimize(3)
#define N 600005
ll f[N];
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
ll T,Q;
cin>>T;
Q=T;
while(T--)
{
ll n,a,sum=0;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>a;
sum+=a;
}
cout<<"Case #"<<Q-T<<": "<<sum/(n-1)+1<<endl;
}
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3644kb
input:
2 2 1 1 3 1 2 3
output:
Case #1: 3 Case #2: 4
result:
ok 2 lines
Test #2:
score: -100
Wrong Answer
time: 15ms
memory: 3556kb
input:
3 100000 968870229 246637522 23867348 170512761 317727561 135784257 788061221 6692201 96102115 164513402 826612817 675345177 690177641 969959105 957765211 678805726 936166573 281739681 760822473 521447491 619742216 102531432 633299481 698320991 55968513 399427883 808303141 53228160 432641457 7250014...
output:
Case #1: 499497467 Case #2: 499721215 Case #3: 498986693
result:
wrong answer 1st lines differ - expected: 'Case #1: 2', found: 'Case #1: 499497467'