- for循环跳跃输出9
66分
- @ 2026-6-24 13:08:11
#include<bits/stdc++.h>
#define int long long
using namespace std;
int n,m;
signed main(){
cin>>n>>m;
if(m==1||m==0)return 0;
for(int i = n;i>=m;i/=m){
cout<<i<<" ";
}
return 0;
}
2 条评论
-
zhangjunyu LV 7 @ 2026-6-25 12:58:15` #include<bits/stdc++.h> #define int long long using namespace std; int a,b; signed main(){ cin>>a>>b; for(int i=a;i>=b;i/=2) cout<<i<<" ";
return 0;} `
-
@ 2026-6-25 12:54:48你要 ,不是 。
- 1
信息
- ID
- 7463
- 时间
- ms
- 内存
- MiB
- 难度
- 7
- 标签
- 递交数
- 33
- 已通过
- 10
- 上传者