| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 137552 | 江婉儿 | 国王游戏 | C++ | Wrong Answer | 10 | 0 MS | 260 KB | 387 | 2024-03-11 13:41:17 |
#include<bits/stdc++.h> using namespace std; struct shushu { int a,b; }shu[1005]; bool sort1(shushu c,shushu d) { if(c.a!=d.a)return c.a<d.a; return c.b>d.b; } int main() { int n; cin>>n>>shu[0].a>>shu[0].b; for(int i=1;i<=n;i++) cin>>shu[i].a>>shu[i].b; sort(shu+1,shu+1+n,sort1); int s=1; for(int i=0;i<n;i++)s*=shu[i].a; cout<<s/shu[n].b; return 0; }