Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
8202 汪天一 药房管理 C++ Wrong Answer 0 0 MS 256 KB 234 2020-10-31 17:08:59

Tests(0/3):


#include<bits/stdc++.h> using namespace std; int main(){ int a,b,n,num=0; cin>>a>>b; for(int i=1;i<=b;i++){ cin>>n; } for(int i=1;i<=b;i++){ while(a>=0){ a-=n; b--; } } cout<<b; return 0; }


Judgement Protocol: