AtCoder Toyota Programming Contest 2023#8(AtCoder Beginner Contest 333)A题解

A - Three Threes Editorial


Time Limit: 2 sec / Memory Limit: 1024 MB

Score : points100100

Problem Statement

You are given an integer between and , inclusive, as input.�N1199

Concatenate copies of the digit and print the resulting string.�NN

Constraints

  • N is an integer between and , inclusive.1199

Input

The input is given from Standard Input in the following format:

N

Output

Print the answer.


Sample Input 1Copy

Copy
3

Sample Output 1Copy

Copy
333

Concatenate three copies of the digit to yield the string .33333


Sample Input 2Copy

Copy
9

Sample Output 2Copy

Copy
999999999

水水水

#include
using namespace std;
#pragma GCC optimize(2)
int main(){
  int n;
  cin>>n;
  for(int i=0;i

你可能感兴趣的:(算法,c++,数据结构)