12 13 12
2024-01-31 20:03:58
发布于:四川
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,s=0,i;
scanf("%d",&n);
while(n>1){
if(n%20){
i=n/2;
printf("%d/2=%d\n",n,i);
n=i;
}
else{
i=n3+1;
printf("%d3+1=%d\n",n,i);
n=i;
}
}
if(n1){
printf("End");
}
return 0;
}
全部评论 3
#include <iostream>
using namespace std;
int main(){
int a,b = 0,c = 0,d = 0,e = 0,f = 0,g =0 ,h = 0;
scanf("%d",&a);
b = a / 100;
a = a % 100;
c = a / 50;
a = a % 50;
d =2024-01-31 来自 四川
0int a,b,c=0,d=0,e=0,f=0,g=0,h=0;
cin>>a;
b=a/100;
a=a%100;
c=a/50;
a=a%50;
d=a/20;
a=a%20;
e=a/10;
a=a%10;
f=a/5;
a=a%5;
g=a/2;
a=a%2;
h=a/1;
printf("%d %d %d %d %d %d %d",b,c,d,e,f,g,h2024-01-31 来自 四川
0#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c=0,d=0,e=0,f=0,g=0,h=0;
cin>>a;
b=a/100;
a=a%100;
c=a/50;
a=a%50;
d=a/20;
a=a%20;
e=a/10;
a=a%10;
f=a/5;
a=a%5;
g=a/2;
a2024-01-31 来自 四川
0
有帮助,赞一个