提出 #71052797


ソースコード 拡げる

n = int(input())
a = list(map(int, input().split()))
for i in range(n):
    ans = -1
    for j in range(i - 1, -1, -1):
        if a[j] > a[i]:
            ans = j + 1
            break
    print(ans)

提出情報

提出日時
問題 B - Nearest Taller
ユーザ sounansya
言語 Python (PyPy 3.11-v7.3.20)
得点 200
コード長 208 Byte
結果 AC
実行時間 55 ms
メモリ 85568 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 18
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 53 ms 79560 KiB
00_sample_01.txt AC 53 ms 79532 KiB
00_sample_02.txt AC 53 ms 79616 KiB
01_random_00.txt AC 51 ms 79804 KiB
01_random_01.txt AC 52 ms 79532 KiB
01_random_02.txt AC 54 ms 85304 KiB
01_random_03.txt AC 54 ms 85568 KiB
01_random_04.txt AC 52 ms 79836 KiB
01_random_05.txt AC 53 ms 79732 KiB
01_random_06.txt AC 52 ms 79744 KiB
01_random_07.txt AC 52 ms 80060 KiB
01_random_08.txt AC 52 ms 79600 KiB
01_random_09.txt AC 52 ms 79828 KiB
01_random_10.txt AC 52 ms 79684 KiB
01_random_11.txt AC 53 ms 79852 KiB
01_random_12.txt AC 55 ms 85404 KiB
01_random_13.txt AC 52 ms 79728 KiB
01_random_14.txt AC 53 ms 79724 KiB