Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130164 胡海峰老师 06买鸡腿 C++ Accepted 1 MS 268 KB 293 2025-09-07 19:22:34

Tests(10/10):


Code:

#include <iostream> using namespace std; int main(){ int a,b ; cin>>a>>b; int res=0,free=0; while( b>=a) { free++; res ++; b = b -a; if ( free==3) { res++; free=0; } } cout<<res; return 0; }