首页 > 其他 > 详细

17西安网络赛

时间:2017-09-16 19:39:27      阅读:201      评论:0      收藏:0      [点我收藏+]

 

 C. Sum

一开始以为是数论(最近碰到过相似的),看大家都那么快过有点懵逼...然后队友搞过了~

技术分享
 1 #include <bits/stdc++.h>
 2 using namespace std;
 3 const int maxn=1010;
 4 int a[maxn];
 5 
 6 int main(){
 7     int t;
 8     scanf("%d",&t);
 9     while(t--){
10         int x;
11         scanf("%d",&x);
12         int pos=0;
13         while(x){
14             a[pos++]=x%10;
15             x/=10;
16         }
17         for(int i = 1; i < 233; i++){
18             printf("1");
19             for(int j = 1; j < pos; j++){
20                 printf("0");
21             }
22         }
23         puts("1");
24     }
25     return 0;
26 }
View Code

 

17西安网络赛

原文:http://www.cnblogs.com/yijiull/p/7532217.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!