QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#864356 | #9859. King of Gamers | Nolearnnodo# | WA | 23ms | 3840kb | C++14 | 361b | 2025-01-20 15:17:12 | 2025-01-20 15:17:13 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
long long n,ans,a,b,n1,n2,nowa,nowb,left,right,tx,mid;
while(t--){
ans=1;
scanf("%lld %lld %lld",&n,&a,&b);
if(n==1 || a==0){
printf("1\n");
continue;
}
if(a==b){
printf("%lld\n",n);
continue;
}
printf("%lld\n",n*a/b);
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3840kb
input:
3 4 3 5 8 7 10 1 1 3
output:
2 5 1
result:
ok 3 number(s): "2 5 1"
Test #2:
score: -100
Wrong Answer
time: 23ms
memory: 3840kb
input:
100000 666977257 46322301 444651505 775037696 10955843 81788929 943459623 1 500000071 998998627 85 465525978 998969116 949398518 949398594 999995971 172077240 464085681 406334061 103283849 270889374 919331712 241327022 645922817 892656218 7 576716801 999547883 26 713779916 998450133 108731744 108731...
output:
69483451 103818345 1 182 998969036 370786158 154925773 343476927 10 36 998449875 78742735 45633857 1 86 166 998436328 648052705 234855349 636574733 845197756 23 999095692 536782514 39227668 662913273 31 89 999468756 488299045 93745045 150212617 65594668 124 998348060 269408392 727561554 741304392 92...
result:
wrong answer 1st numbers differ - expected: '69483452', found: '69483451'