80分

P1150 Peter 的烟

AcxxMz @ 2022-11-08 13:45:30

#include<bits/stdc++.h>
using namespace std;
int main()
{
    long long n,k;
    cin>>n>>k;
    if(n>=k)
        cout<<n+n/k;
    else if(n<k)
        cout<<n;
    return 0; 
}

rt,不知道哪错了


by happy_zero @ 2022-11-08 13:50:57

@1234aaa 换的烟还能继续换


by AcxxMz @ 2022-11-08 13:51:30

o


by yz_by @ 2022-11-08 13:52:33

有可能n/k\ge k


|