|
|
|
|
讨论 Discussion |
|
| |
答案1 |
#include<bits/stdc++.h>
using namespace std;
int main(){
//freopen("p1752.in","r",stdin);
//freopen("p1752.out","w",stdout);
int n;
cin>>n;
for(int i=0;i<n;i++){
char s='A'+i;
for(int j=0;j<=i;j++) {
cout<<s;
}
cout<<endl;
}
//fclose(stdin);
//fclose(stdout);
return 0;
}
( ) |
|
|
|
|
|
|
|
|
|
Flag |
|
题号 |
P1752 |
|
字符串处理 |
通过 |
32人 |
提交 |
74次 |
通过率 |
43% |
难度 |
0 |
|
|
|
|
|
|