poj3366_构造.cpp
来自「本人最近在acm.pku.edu.cn上通过的程序」· C++ 代码 · 共 23 行
CPP
23 行
#include <algorithm>
using namespace std;
const char s[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
int main(){
int n;
scanf("%d", &n);
printf("%d %d %d\n", 2, n, n);
for (int i = 0; i < n; i++){
for (int j = 0; j < n; j++)
putchar(s[i]);
putchar('\n');
}
puts("");
for (int i = 0; i < n; i++){
for (int j = 0; j < n; j++)
putchar(s[j]);
putchar('\n');
}
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?