結果

問題 No.1859 ><<<
ユーザー ShirotsumeShirotsume
提出日時 2021-11-26 12:45:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 178 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 10,508 KB
実行使用メモリ 44,680 KB
最終ジャッジ日時 2023-09-17 22:16:50
合計ジャッジ時間 8,529 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,836 KB
testcase_01 AC 16 ms
7,828 KB
testcase_02 AC 17 ms
7,824 KB
testcase_03 AC 17 ms
7,808 KB
testcase_04 AC 168 ms
44,564 KB
testcase_05 AC 171 ms
44,592 KB
testcase_06 AC 167 ms
44,512 KB
testcase_07 AC 168 ms
44,676 KB
testcase_08 AC 169 ms
44,664 KB
testcase_09 AC 170 ms
44,680 KB
testcase_10 AC 42 ms
14,156 KB
testcase_11 AC 110 ms
29,312 KB
testcase_12 AC 99 ms
25,448 KB
testcase_13 AC 66 ms
19,228 KB
testcase_14 AC 114 ms
29,548 KB
testcase_15 AC 150 ms
37,532 KB
testcase_16 AC 166 ms
42,232 KB
testcase_17 AC 129 ms
33,504 KB
testcase_18 AC 162 ms
39,572 KB
testcase_19 AC 125 ms
31,552 KB
testcase_20 AC 151 ms
39,848 KB
testcase_21 AC 164 ms
44,244 KB
testcase_22 AC 160 ms
42,328 KB
testcase_23 AC 144 ms
37,196 KB
testcase_24 AC 164 ms
41,408 KB
testcase_25 AC 167 ms
39,828 KB
testcase_26 AC 155 ms
40,060 KB
testcase_27 AC 166 ms
39,952 KB
testcase_28 AC 158 ms
39,116 KB
testcase_29 AC 161 ms
40,536 KB
testcase_30 AC 154 ms
37,300 KB
testcase_31 AC 154 ms
37,180 KB
testcase_32 AC 174 ms
41,716 KB
testcase_33 AC 157 ms
37,368 KB
testcase_34 AC 158 ms
39,168 KB
testcase_35 AC 177 ms
44,316 KB
testcase_36 AC 172 ms
44,192 KB
testcase_37 AC 158 ms
39,848 KB
testcase_38 AC 178 ms
44,480 KB
testcase_39 AC 176 ms
44,344 KB
testcase_40 AC 162 ms
41,268 KB
testcase_41 AC 169 ms
44,268 KB
testcase_42 AC 144 ms
37,232 KB
testcase_43 AC 158 ms
42,128 KB
testcase_44 AC 159 ms
42,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(n, a, s):
    a = a + a
    t = []
    for i in range(2 * n - 1):
        if a[i] < a[i + 1]:
            t.append('<')
        else:
            t.append('>')
    t = ''.join(t)
    return t.find(s)

n = int(input())
a = list(map(int,input().split()))
s = input()

print(solve(n, a, s))
0