Không hỗ trợ Mobile

Chế độ luyện tập yêu cầu môi trường màn hình lớn để làm bài và chống gian lận hiệu quả. Vui lòng truy cập bằng máy tính (Desktop/Laptop) để tiếp tục thao tác.

Quay lại trang chủ

#1300 · String Power

MÔ TẢ BÀI TOÁN

The K^{th} power string of a string S is a string T formed by writing S string K times consecutively. For example, the 3^{rd} power string of the string "abc" is the string "abcabcabc".

Given an integer K and two strings S and T. Check if T is the K^{th} power string of S.

Dữ liệu vào

Consists of 3 lines:

  • The first two lines respectively contain strings S and T
  • The last line contains the integer K.

Dữ liệu ra

If T is the K^{th} power string of S, print YES. Otherwise, print NO.

Ràng buộc

BẢNG TỔNG QUAN KẾT QUẢ

# Tài khoản Kết suất Lúc nộp
1
V
Lê Quang Vinh @2180603246
1 ms 192 KB
396 Bytes
25/03/2023
20:44
2
1 ms 192 KB
494 Bytes
22/07/2023
23:34
3
1 ms 200 KB
346 Bytes
25/03/2023
20:28
4
T
1 ms 200 KB
522 Bytes
23/07/2023
01:27
5
Lê Duy Hải @2280600799
1 ms 216 KB
335 Bytes
22/07/2023
09:28
6
1 ms 216 KB
442 Bytes
08/03/2025
15:54
7
1 ms 216 KB
754 Bytes
04/01/2025
22:38
8
1 ms 216 KB
934 Bytes
14/10/2023
23:23
9
1 ms 220 KB
316 Bytes
22/07/2023
14:41
10
1 ms 256 KB
247 Bytes
25/03/2023
20:10
11
P
1 ms 256 KB
367 Bytes
25/03/2023
19:31
12
A
1 ms 256 KB
452 Bytes
27/03/2023
07:49
13
1 ms 256 KB
654 Bytes
15/05/2023
13:18
14
1 ms 256 KB
654 Bytes
17/05/2023
00:43
15
1 ms 260 KB
253 Bytes
14/07/2023
21:06
16
A
1 ms 260 KB
333 Bytes
25/03/2023
20:15
17
H
1 ms 260 KB
522 Bytes
27/03/2023
20:55
18
1 ms 260 KB
647 Bytes
31/03/2023
20:01
19
1 ms 260 KB
763 Bytes
25/05/2023
15:50
20
M
1 ms 264 KB
247 Bytes
27/03/2023
15:21

LỊCH SỬ CÁ NHÂN

Vui lòng đăng nhập để xem lịch sử làm bài của bạn.

THẢO LUẬN BÀI TOÁN

Chưa có thảo luận nào cho bài này.

Viết code