結果
| 問題 | No.1859 ><<< |
| ユーザー |
norioc
|
| 提出日時 | 2025-11-12 01:06:38 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 3,992 ms |
| コンパイル使用メモリ | 82,272 KB |
| 実行使用メモリ | 61,552 KB |
| 最終ジャッジ日時 | 2025-11-12 01:12:15 |
| 合計ジャッジ時間 | 5,904 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | TLE * 1 -- * 40 |
ソースコード
from itertools import pairwise
N = int(input())
A = list(map(int, input().split()))
S = input()
cs = []
for a, b in pairwise(A + A):
if a < b:
cs.append('<')
else:
cs.append('>')
t = ''.join(cs)
p = t.find(S)
print(p)
norioc