結果

問題 No.1859 ><<<
ユーザー 👑 colognecologne
提出日時 2022-02-27 13:14:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 349 ms
コンパイル使用メモリ 10,560 KB
実行使用メモリ 44,708 KB
最終ジャッジ日時 2023-09-18 23:40:10
合計ジャッジ時間 7,289 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,848 KB
testcase_01 AC 16 ms
7,772 KB
testcase_02 AC 15 ms
7,800 KB
testcase_03 AC 14 ms
7,800 KB
testcase_04 AC 126 ms
44,600 KB
testcase_05 AC 125 ms
44,608 KB
testcase_06 AC 125 ms
44,600 KB
testcase_07 AC 124 ms
44,604 KB
testcase_08 AC 125 ms
44,608 KB
testcase_09 AC 127 ms
44,708 KB
testcase_10 AC 34 ms
13,664 KB
testcase_11 AC 83 ms
27,948 KB
testcase_12 AC 74 ms
25,540 KB
testcase_13 AC 50 ms
19,436 KB
testcase_14 AC 85 ms
29,676 KB
testcase_15 AC 110 ms
37,504 KB
testcase_16 AC 125 ms
40,056 KB
testcase_17 AC 96 ms
33,960 KB
testcase_18 AC 122 ms
39,580 KB
testcase_19 AC 96 ms
31,484 KB
testcase_20 AC 112 ms
38,136 KB
testcase_21 AC 122 ms
42,080 KB
testcase_22 AC 119 ms
42,284 KB
testcase_23 AC 108 ms
38,712 KB
testcase_24 AC 122 ms
41,480 KB
testcase_25 AC 125 ms
39,844 KB
testcase_26 AC 115 ms
40,028 KB
testcase_27 AC 123 ms
39,928 KB
testcase_28 AC 118 ms
40,604 KB
testcase_29 AC 121 ms
40,584 KB
testcase_30 AC 115 ms
37,520 KB
testcase_31 AC 114 ms
37,300 KB
testcase_32 AC 129 ms
41,896 KB
testcase_33 AC 117 ms
37,284 KB
testcase_34 AC 118 ms
40,908 KB
testcase_35 AC 130 ms
42,028 KB
testcase_36 AC 129 ms
42,100 KB
testcase_37 AC 118 ms
37,912 KB
testcase_38 AC 134 ms
44,588 KB
testcase_39 AC 134 ms
42,100 KB
testcase_40 AC 121 ms
43,060 KB
testcase_41 AC 130 ms
42,184 KB
testcase_42 AC 108 ms
38,724 KB
testcase_43 AC 116 ms
40,436 KB
testcase_44 AC 120 ms
40,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    *A, = map(int, input().split())
    s = input()
    t = ''.join(['<' if A[i] < A[i+1] else '>' for i in range(N-1)])
    t = t + ('<' if A[-1] < A[0] else '>') + t
    print(t.find(s))


if __name__ == '__main__':
    main()
0