zzchemistry @ 2015-08-23 09:04:48
#include<stdio.h>
int main()
{
int n;
int ge,shi,bai,qian,wan,shiwan,baiwan,qianwan,yi,shiyi;
int nge,nshi,nbai,nqian,nwan,nshiwan,nbaiwan,nqianwan,nyi,nshiyi;
scanf("%d",n);
if(n >= 0 && n <= 1000000000)
{
shiyi=n/1000000000;
yi=n%1000000000/100000000;
qianwan=n%1000000000%100000000/10000000;
baiwan=n%1000000000%100000000%10000000/1000000;
shiwan=n%1000000000%100000000%10000000%1000000/100000;
wan=n%1000000000%100000000%10000000%1000000%100000/10000;
qian=n%1000000000%100000000%10000000%1000000%100000%10000/1000;
bai=n%1000000000%100000000%10000000%1000000%100000%10000%1000/100;
shi=n%1000000000%100000000%10000000%1000000%100000%10000%1000%100/10;
ge=n%1000000000%100000000%10000000%1000000%100000%10000%1000%100%10;
if(ge != 0)
printf("%d",ge*1000000000+shi*100000000+bai*10000000+qian*1000000+wan*100000+shiwan*10000+baiwan*1000+qianwan*100+yi*10+shiyi);
if(ge == 0 && shi != 0)
printf("%d",shi*100000000+bai*10000000+qian*1000000+wan*100000+shiwan*10000+baiwan*1000+qianwan*100+yi*10+shiyi);
if(ge == 0 && shi == 0 && bai != 0)
printf("%d",bai*10000000+qian*1000000+wan*100000+shiwan*10000+baiwan*1000+qianwan*100+yi*10+shiyi);
if(ge == 0 && shi == 0 && bai == 0 && qian != 0)
printf("%d",qian*1000000+wan*100000+shiwan*10000+baiwan*1000+qianwan*100+yi*10+shiyi);
if(ge == 0 && shi == 0 && bai == 0 && qian == 0 && wan != 0)
printf("%d",wan*100000+shiwan*10000+baiwan*1000+qianwan*100+yi*10+shiyi);
if(ge == 0 && shi == 0 && bai == 0 && qian == 0 && wan == 0 && shiwan != 0)
printf("%d",shiwan*10000+baiwan*1000+qianwan*100+yi*10+shiyi);
if(ge == 0 && shi == 0 && bai == 0 && qian == 0 && wan == 0 && shiwan == 0 && baiwan != 0)
printf("%d",baiwan*1000+qianwan*100+yi*10+shiyi);
if(ge == 0 && shi == 0 && bai == 0 && qian == 0 && wan == 0 && shiwan == 0 && baiwan == 0 && qianwan != 0)
printf("%d",qianwan*100+yi*10+shiyi);
if(ge == 0 && shi == 0 && bai == 0 && qian == 0 && wan == 0 && shiwan == 0 && baiwan == 0 && qianwan == 0 && yi != 0)
printf("%d",yi*10+shiyi);
if(ge == 0 && shi == 0 && bai == 0 && qian == 0 && wan == 0 && shiwan == 0 && baiwan == 0 && qianwan == 0 && yi == 0)
printf("%d",shiyi);
}
if(n >= -1000000000 && n < 0)
{
nshiyi=-n/1000000000;
nyi=-n%1000000000/100000000;
nqianwan=-n%1000000000%100000000/10000000;
nbaiwan=-n%1000000000%100000000%10000000/1000000;
nshiwan=-n%1000000000%100000000%10000000%1000000/100000;
nwan=-n%1000000000%100000000%10000000%1000000%100000/10000;
nqian=-n%1000000000%100000000%10000000%1000000%100000%10000/1000;
nbai=-n%1000000000%100000000%10000000%1000000%100000%10000%1000/100;
nshi=-n%1000000000%100000000%10000000%1000000%100000%10000%1000%100/10;
nge=-n%1000000000%100000000%10000000%1000000%100000%10000%1000%100%10;
if(nge != 0)
printf("%d",-(nge*1000000000+nshi*100000000+nbai*10000000+nqian*1000000+nwan*100000+nshiwan*10000+nbaiwan*1000+nqianwan*100+nyi*10+nshiyi));
if(nge == 0 && nshi != 0)
printf("%d",-(nshi*100000000+nbai*10000000+nqian*1000000+nwan*100000+nshiwan*10000+nbaiwan*1000+nqianwan*100+nyi*10+nshiyi));
if(nge == 0 && nshi == 0 && nbai != 0)
printf("%d",-(nbai*10000000+nqian*1000000+nwan*100000+nshiwan*10000+nbaiwan*1000+nqianwan*100+nyi*10+nshiyi));
if(nge == 0 && nshi == 0 && nbai == 0 && nqian != 0)
printf("%d",-(nqian*1000000+nwan*100000+nshiwan*10000+nbaiwan*1000+nqianwan*100+nyi*10+nshiyi));
if(nge == 0 && nshi == 0 && nbai == 0 && nqian == 0 && nwan != 0)
printf("%d",-(nwan*100000+nshiwan*10000+nbaiwan*1000+nqianwan*100+nyi*10+nshiyi));
if(nge == 0 && nshi == 0 && nbai == 0 && nqian == 0 && nwan == 0 && nshiwan != 0)
printf("%d",-(nshiwan*10000+nbaiwan*1000+nqianwan*100+nyi*10+nshiyi));
if(nge == 0 && nshi == 0 && nbai == 0 && nqian == 0 && nwan == 0 && nshiwan == 0 && nbaiwan != 0)
printf("%d",-(nbaiwan*1000+nqianwan*100+nyi*10+nshiyi));
if(nge == 0 && nshi == 0 && nbai == 0 && nqian == 0 && nwan == 0 && nshiwan == 0 && nbaiwan == 0 && nqianwan != 0)
printf("%d",-(nqianwan*100+nyi*10+nshiyi));
if(nge == 0 && nshi == 0 && nbai == 0 && nqian == 0 && nwan == 0 && nshiwan == 0 && nbaiwan == 0 && nqianwan == 0 && nyi != 0)
printf("%d",-(yi*10+shiy…
by mob_spawner @ 2015-09-07 16:01:33
肯定是代码太长,评测系统看你不爽……我也是醉了……
var st:string;
n,i:longint;
begin
readln(n);
str(n,st);
while st[length(st)]='2333' do
delete(st,length(st),2333);
if n<2333 then delete(st,2333,2333);
if n<2333 then write('2333');
by WEmodOI=Fanta @ 2015-09-15 21:51:29
lz,表示我已醉
by MrMorning @ 2015-09-19 13:19:23
楼主好吊
by wwzwwz123 @ 2015-10-28 15:48:52
哈啊哈哈,楼主精神可嘉啊!!
by guuoo1 @ 2015-11-12 10:51:05
scanf("%d",n)!!!错了!!!!!!!!!!!!!!
代码限制:40kb!!醉的不轻啊!!!!!!!!!!
by 飞天者 @ 2015-11-22 22:36:17
楼主,我想吐。
by myx1221 @ 2017-03-12 08:07:50
楼主牛逼