训练记录

辣鸡lfw和傻逼byf互相表演,都没看出直接暴力跑B得快速幂是1e6*1e6的复杂度,写了一万年,lfw还因为搞错了a,b顺序半天过不了样例,10次方的快速幂byf自己讲课的课件上有,然后别的队看着他课件写得,他自己不会,需要好好复习。导致后面很多很水的题没写。难顶,以后不要3个人同时做一道题。

题解

比赛链接:https://ac.nowcoder.com/acm/contest/885#question

A digits 2

输出n遍n

 1 #include<bits/stdc++.h>
 2 using namespace std;
 3 
 4 int n;
 5 
 6 int main()
 7 {
 8     int t;
 9     scanf("%d",&t);
10     for(int i=1;i<=t;i++)
11     {
12         scanf("%d",&n);
13         for(int j=1;j<=n;j++)
14             printf("%d",n);
15         puts("");
16     }
17     return 0;
18 }
View Code

相关文章:

  • 2018-07-26
  • 2019-07-28
  • 2021-11-05
  • 2019-09-06
  • 2019-07-28
  • 2021-12-15
  • 2021-12-02
  • 2019-08-11
猜你喜欢
  • 2019-08-15
  • 2019-07-28
  • 2019-08-05
  • 2019-08-10
  • 2021-11-16
  • 2018-08-19
  • 2021-12-05
  • 2021-07-14
相关资源
相似解决方案