Submission #31063590
Source Code Expand
n = int(input())
k = int(input())
s = input()
r = 0
for i in range(n - 1):
if s[i] == "R":
r += 1
if r == k:
print("W")
else:
print("R")
Submission Info
| Submission Time | |
|---|---|
| Task | C - 運動会 (Sports Day) |
| User | Pro_ktmr |
| Language | PyPy3 (7.3.0) |
| Score | 100 |
| Code Size | 166 Byte |
| Status | AC |
| Exec Time | 64 ms |
| Memory | 63440 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample-01.txt, sample-02.txt, sample-03.txt |
| All | 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, 01-13.txt, 01-14.txt, 01-15.txt, 01-16.txt, 01-17.txt, 01-18.txt, 01-19.txt, 01-20.txt, 01-21.txt, 01-22.txt, 01-23.txt, 01-24.txt, 01-25.txt, 01-26.txt, 01-27.txt, 01-28.txt, 01-29.txt, 01-30.txt, 01-31.txt, 01-32.txt, 01-33.txt, 01-34.txt, 01-35.txt, 01-36.txt, 01-37.txt, 01-38.txt, sample-01.txt, sample-02.txt, sample-03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01-01.txt | AC | 64 ms | 62340 KiB |
| 01-02.txt | AC | 53 ms | 61132 KiB |
| 01-03.txt | AC | 54 ms | 62384 KiB |
| 01-04.txt | AC | 53 ms | 61384 KiB |
| 01-05.txt | AC | 52 ms | 62476 KiB |
| 01-06.txt | AC | 54 ms | 62320 KiB |
| 01-07.txt | AC | 54 ms | 60840 KiB |
| 01-08.txt | AC | 53 ms | 61256 KiB |
| 01-09.txt | AC | 53 ms | 62508 KiB |
| 01-10.txt | AC | 53 ms | 61220 KiB |
| 01-11.txt | AC | 46 ms | 62244 KiB |
| 01-12.txt | AC | 60 ms | 62308 KiB |
| 01-13.txt | AC | 53 ms | 62812 KiB |
| 01-14.txt | AC | 55 ms | 63440 KiB |
| 01-15.txt | AC | 55 ms | 62372 KiB |
| 01-16.txt | AC | 53 ms | 62220 KiB |
| 01-17.txt | AC | 56 ms | 63060 KiB |
| 01-18.txt | AC | 55 ms | 62864 KiB |
| 01-19.txt | AC | 52 ms | 62620 KiB |
| 01-20.txt | AC | 52 ms | 62212 KiB |
| 01-21.txt | AC | 52 ms | 62236 KiB |
| 01-22.txt | AC | 55 ms | 62172 KiB |
| 01-23.txt | AC | 51 ms | 61076 KiB |
| 01-24.txt | AC | 55 ms | 62600 KiB |
| 01-25.txt | AC | 49 ms | 61112 KiB |
| 01-26.txt | AC | 49 ms | 61268 KiB |
| 01-27.txt | AC | 56 ms | 62464 KiB |
| 01-28.txt | AC | 54 ms | 62608 KiB |
| 01-29.txt | AC | 52 ms | 62572 KiB |
| 01-30.txt | AC | 55 ms | 62168 KiB |
| 01-31.txt | AC | 54 ms | 61192 KiB |
| 01-32.txt | AC | 55 ms | 62356 KiB |
| 01-33.txt | AC | 51 ms | 62480 KiB |
| 01-34.txt | AC | 54 ms | 61340 KiB |
| 01-35.txt | AC | 55 ms | 62080 KiB |
| 01-36.txt | AC | 56 ms | 62124 KiB |
| 01-37.txt | AC | 54 ms | 62092 KiB |
| 01-38.txt | AC | 54 ms | 62664 KiB |
| sample-01.txt | AC | 52 ms | 61320 KiB |
| sample-02.txt | AC | 53 ms | 61552 KiB |
| sample-03.txt | AC | 52 ms | 61096 KiB |