QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#789985 | #9629. 小 C 的神秘图形 | zhuge0 | WA | 1ms | 3640kb | C++17 | 773b | 2024-11-27 23:23:20 | 2024-11-27 23:23:21 |
Judging History
answer
#include <algorithm>
#include<bits/stdc++.h>
using namespace std;
#define ll long long
const long long inf =1e18,mod=998244353;
long long n,m,k;
string s;
void solve()
{
long long ppmax; cin>>ppmax;
long long a,b,c,d,e,f; cin>>a>>b>>c>>d>>e>>f;
double acc=(300.0*a+300*b+200*c+100*d+50*e)/(300.0*(a+b+c+d+e+f))*100.0;
double tpp=(320.0*a+300*b+200*c+100*d+50*e)/(320.0*(a+b+c+d+e+f))*5*ppmax;
long long pp=max(0LL, (long long) (round (tpp))-4LL*ppmax);
cout<<fixed<<setprecision (2)<<acc<<"%"<<" "<<pp<<"\n";
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
// cout.tie(0);
int T=1;
cin>>T;
while(T--) {
solve();
}
}
/*
2
630
3029 2336 377 41 10 61
3000
20000 10000 0 0 0 0
*/
详细
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3640kb
input:
96 122100012110202022211102020101110122101010001012220001000222210100222112111020002212000222012022 010112102102202201211121022102211110211010101020001021100101110202100010112221022001101222101102
output:
0.29% 123768114038850916 0.29% 123768114038850916 0.29% 123768114038850916 0.29% 123768114038850916 0.29% 123768114038850916 0.29% 123768114038850916 0.29% 123768114038850916 0.29% 123768114038850916 0.29% 123768114038850916 0.29% 123768114038850916 0.29% 123768114038850916 0.29% 123768114038850916 ...
result:
wrong answer 1st lines differ - expected: '0', found: '0.29% 123768114038850916'