Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
2117 梅煦洋 兑换硬币 C++ 通过 100 0 MS 256 KB 262 2019-11-08 20:35:01

Tests(4/4):


#include<iostream> using namespace std; int main(){ int cpp=0,exe,doc=1,docx; cin>>exe; exe=exe*100; while(doc<=exe/5-1) { docx=exe-5*doc; if(doc%2==1){ cpp+=docx/2; }else{ cpp+=docx/2-1; } doc++; } cout<<cpp; return 0; }


测评信息: