/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> NameError: name 'minimum_idx_idx' is not defined. Did you mean: 'minimum_idx'? 15ms 3.066 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> NameError: name 'minimum_idx_idx' is not defined. Did you mean: 'minimum_idx'? 15ms 2.887 MiB
#3 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> NameError: name 'minimum_idx_idx' is not defined. Did you mean: 'minimum_idx'? 16ms 3.062 MiB
#4 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> NameError: name 'minimum_idx_idx' is not defined. Did you mean: 'minimum_idx'? 16ms 3.062 MiB
#5 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> NameError: name 'minimum_idx_idx' is not defined. Did you mean: 'minimum_idx'? 44ms 12.766 MiB
#6 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> NameError: name 'minimum_idx_idx' is not defined. Did you mean: 'minimum_idx'? 45ms 12.785 MiB

Code

n = int(input())
arr = list(map(int, input().split()))
q = int(input())

for i in range(q):
    x = int(input())
    minimum_idx = arr.index(min(arr)) + 1
    print(minimum_idx_idx)
    arr[minimum_idx_idx - 1] = x

Information

Submit By
Type
Submission
Problem
P1086 KuZ the Position
Contest
Bangladesh 2.0
Language
Python 3 (Python 3.12.3)
Submit At
2024-08-16 17:22:30
Judged At
2024-10-03 13:22:10
Judged By
Score
0
Total Time
45ms
Peak Memory
12.785 MiB