백준 2675 문자열 반복
Console Programming/C# Console 2019. 10. 8. 03:47
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TestMain
{
class Program
{
static void Main(string[] args)
{
int testCaseNum = int.Parse(Console.ReadLine());
for (int k =0; k < testCaseNum; k++)
{
string input = Console.ReadLine();
int replayNum = int.Parse(str[0]);
string substr = str[1];
{
for (int i = 0; i < replayNum; i++)
{
Console.Write(substr[j]);
}
}
Console.WriteLine();
}
}
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
|
![](https://blog.kakaocdn.net/dn/bHzm2W/btqyQ4QsSNY/M41NLxYWOdaPVGsvtFIiKK/img.png)
'Console Programming > C# Console' 카테고리의 다른 글
12일차 클래스 2차원 위치정보 (0) | 2019.10.08 |
---|---|
백준 2675 문자열 반복 (0) | 2019.10.08 |
백준 11809 알파벳 찾기 (0) | 2019.10.08 |
10.03 11일차 클래스 (29) 질럿,드라군 공격사거리 (0) | 2019.10.08 |
11일차 클래스(23) (0) | 2019.10.04 |