Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1378 王彦皓 14能吸多少根烟 C++ Wrong Answer 0 MS 256 KB 196 2023-09-02 20:05:36

Tests(0/10):


Code:

#include <iostream> using namespace std; int main(){ int n;//烟 int k;//比例 int h;//总数 cin>>n>>k; for(int i=0;n>=k;i++){ n-=k; h+=k; n+=1; } cout<<h+n<<endl; }


Run Info:

------Input------
133 12
------Answer-----
145
------Your output-----
4195233