有没有哥解释一下通过不了

P1150 Peter 的烟

Han196348395 @ 2024-04-21 17:08:23


by XuYueming @ 2024-04-21 17:19:06

@Han196348395 ?


by lixuanxi @ 2024-04-21 17:21:19

@Han196348395 能放一下代码吗?


by xiangzhenze611 @ 2024-04-21 17:24:56

@Han196348395 你的代码呢


by xiangzhenze611 @ 2024-04-21 17:26:01

#include<iostream>
using namespace std;
int main() {
  int n,k;
  cin>>n>>k;
  cout<<n+(n-1)/(k-1);
  return 0;
} 

by xiangzhenze611 @ 2024-04-21 17:26:22

@Han196348395 上面的是我的代码


by xiangzhenze611 @ 2024-04-21 17:26:39

@Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395 @Han196348395


by XianYuzhinan @ 2024-05-08 18:39:06

@xiangzhenze611 兄弟你怪有趣的


by xiangzhenze611 @ 2024-05-08 18:42:12

@XianYuzhinan 呃


by 1301731qwe @ 2024-06-05 21:40:06

@XianYuzhinan 6


|