UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#170298#1129. 打印图形luojianwei22161001ms1192kbC++227b2023-04-01 21:30:142023-04-01 21:30:16

answer

#include <bits/stdc++.h>
using namespace std;

int main() {
	int a, b;
	char c;
	cin >> a >> b >> c;
	for(int i = 1; i <= a; i++) {
		for(int j = 1; j <= b; j++) {
			cout << c;
		}
		cout << endl;
	}
	return 0;
}

详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 20
Accepted
time: 0ms
memory: 1192kb

input:

13 7 a

output:

aaaaaaa
aaaaaaa
aaaaaaa
aaaaaaa
aaaaaaa
aaaaaaa
aaaaaaa
aaaaaaa
aaaaaaa
aaaaaaa
aaaaaaa
aaaaaaa
aaaa...

result:

ok 13 lines

Test #2:

score: 20
Accepted
time: 0ms
memory: 1188kb

input:

6 11 *

output:

***********
***********
***********
***********
***********
***********

result:

ok 6 lines

Test #3:

score: 20
Accepted
time: 0ms
memory: 1192kb

input:

9 12 @

output:

@@@@@@@@@@@@
@@@@@@@@@@@@
@@@@@@@@@@@@
@@@@@@@@@@@@
@@@@@@@@@@@@
@@@@@@@@@@@@
@@@@@@@@@@@@
@@@@@@@@@...

result:

ok 9 lines

Test #4:

score: 20
Accepted
time: 0ms
memory: 1188kb

input:

12 10 #

output:

##########
##########
##########
##########
##########
##########
##########
##########
##########
#...

result:

ok 12 lines

Test #5:

score: 20
Accepted
time: 1ms
memory: 1188kb

input:

14 11 $

output:

$$$$$$$$$$$
$$$$$$$$$$$
$$$$$$$$$$$
$$$$$$$$$$$
$$$$$$$$$$$
$$$$$$$$$$$
$$$$$$$$$$$
$$$$$$$$$$$
$$$$...

result:

ok 14 lines