結果
問題 |
No.515 典型LCP
|
ユーザー |
![]() |
提出日時 | 2020-05-08 20:22:55 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 357 bytes |
コンパイル時間 | 132 ms |
コンパイル使用メモリ | 82,908 KB |
実行使用メモリ | 106,060 KB |
最終ジャッジ日時 | 2024-07-03 09:56:30 |
合計ジャッジ時間 | 2,448 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 15 |
ソースコード
import sys from operator import itemgetter read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N = int(readline()) S = read().split() M, x, d = map(int, S[-3:]) inds, words = zip(*sorted(enumerate(S[:-3], 1), key=itemgetter(1))) re_index = [0] * (N+1) for i,x in enumerate(inds): re_index[x] = i