- 问答
P928 67分
- @ 2026-6-8 21:10:38
#include<bits/stdc++.h>
using namespace std;
int n,k;
int main(){
cin>>n>>k;
if(n%k == 0)cout<<n/k*2;
else cout<<(n-k)/k*2+3;
return 0;
}
1 条评论
-
zengjianbo LV 8 @ 2026-6-8 21:51:08
- 1