摘要: 问题:输入一个正整数(<10000),输出颠倒后的整数。【样例输入】1234【样例输出】4321回答:#include int main(){ int num ; scanf("%d",&num); int x,y,z,n,result; if(num > 999) { x = num / 1000... 阅读全文
posted @ 2015-05-23 10:40 chaoer 阅读(253) 评论(0) 推荐(0)
摘要: 问题:InputThe first line of input contains a single integer P, (1 ≤ P ≤ 1000), which is the number of data sets that follow. Each data set consists of a... 阅读全文
posted @ 2015-05-23 10:27 chaoer 阅读(207) 评论(0) 推荐(0)