Submission #2022055


Source Code Expand

N, L, R = map(int, raw_input().split(' '))
a = map(int, raw_input().split(' '))
o = []
for ai in a:
  if ai < L:
    o.append(L)
  elif ai > R:
    o.append(R)
  else:
    o.append(ai)
print ' '.join(map(str, o))

Submission Info

Submission Time
Task B - 音量
User naoya_t
Language Python (2.7.6)
Score 200
Code Size 224 Byte
Status AC
Exec Time 83 ms
Memory 12628 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 15
Set Name Test Cases
Sample sample0.txt, sample1.txt, sample2.txt
All 01-00.txt, 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, sample0.txt, sample1.txt, sample2.txt
Case Name Status Exec Time Memory
01-00.txt AC 76 ms 12496 KB
01-01.txt AC 76 ms 12628 KB
01-02.txt AC 78 ms 12628 KB
01-03.txt AC 80 ms 12624 KB
01-04.txt AC 78 ms 12500 KB
01-05.txt AC 83 ms 12628 KB
01-06.txt AC 81 ms 12624 KB
01-07.txt AC 80 ms 12628 KB
01-08.txt AC 75 ms 12628 KB
01-09.txt AC 76 ms 12628 KB
01-10.txt AC 73 ms 12628 KB
01-11.txt AC 78 ms 12624 KB
sample0.txt AC 10 ms 2568 KB
sample1.txt AC 10 ms 2568 KB
sample2.txt AC 10 ms 2568 KB