結果
| 問題 | No.1859 ><<< |
| ユーザー |
norioc
|
| 提出日時 | 2025-11-12 01:06:38 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 263 ms |
| コンパイル使用メモリ | 96,228 KB |
| 実行使用メモリ | 143,232 KB |
| 最終ジャッジ日時 | 2026-07-16 11:23:47 |
| 合計ジャッジ時間 | 4,607 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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