Переведите из Python в C++
n, k = [int(s) for s in input().split()]
bahn = ['I'] * n
for i in range(k):
left, right = [int(s) for s in input().split()]
for j in range(left - 1, right):
bahn[j] = '.'
print(''.join(bahn))
Пожалуйста,дам много баллов .
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.