namespace std;Рint main()Р{Р?int m,n,a,b,c,d,e,f;Р?cin>>m;Р?a=m%10;Р?b=m/10%10;Р?c=m/100%10;Р?d=m/1000%10;Р?e=m/10000%10;Р?if(e==0) {Р if(d==0) {Р if(c==0){Р if(b==0) {Р if(a==0) {Р n=0;Р }Р else {Р n=a;Р }Р }Р else {Р n=a*10+b;Р }Р }Р else {Р n=a*100+b*10+c;Р }Р }Р else {Р n=a*1000+b*100+c*10+d;Р }Р?}Р?else {Р n=a*10000+b*1000+c*100+d*10+e;Р?}Р?if(m==n) cout<<"yes"<<endl;Р?else cout<<"no"<<endl;Р?return 0;Р}Р奖金发放Р#include <iostream>Р#include <iomanip>Рusing namespace std;Рint main()Р{Р?double w,y;Р?cin>>w;Р?if(w<=10) y=0.1*w;Р?else if(w<=20) y=(w-10)*0.075+1;Р?else if(w<=40) y=(w-20)*0.05+1.75;Р?else if(w<=60) y=(w-40)*0.03+2.75;Р?else if(w<=100) y=(w-60)*0.015+3.35;Р?else y=(w-60)*0.01+3.95;Р?cout<<fixed<<setprecision(6)<<y<<endl;Р?return 0;Р}Р出租车费Р难点:不足一公里按一公里收费。【ceil函数】Р法一【“%”取余的充分运用】