Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
2100 梅煦洋 兑换硬币 C++ Time Limit Exceeded 0 1000 MS 248 KB 276 2019-11-07 22:14:22

Tests(0/4):


#include<iostream> using namespace std; int main(){ int n,q=0; cin>>n; n*=100; for(int a=1;a<=(n-5-2)/1;a++){ for(int b=1;b<=(n-5-1)/2;b++){ for(int c=1;c<=(n-1-2)/5;c++){ if(a*1+b*2+c*5==n){ q++; } } } } cout<<q; return 0; }


Judgement Protocol: