训练记录

辣鸡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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-01
  • 2022-02-23
  • 2021-08-13
  • 2021-12-11
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案