QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#789985#9629. 小 C 的神秘图形zhuge0WA 1ms3640kbC++17773b2024-11-27 23:23:202024-11-27 23:23:21

Judging History

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

  • [2024-11-27 23:23:21]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3640kb
  • [2024-11-27 23:23:20]
  • 提交

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'