結果
問題 |
No.1018 suffixsuffixsuffix
|
ユーザー |
![]() |
提出日時 | 2020-03-11 08:06:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 257 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 18,896 KB |
最終ジャッジ日時 | 2024-07-03 00:00:35 |
合計ジャッジ時間 | 3,215 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 34 |
ソースコード
#!/usr/bin/python3.8 import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines S = readline().rstrip() N, K = map(int, read().split()) S *= N SA = sorted(range(1, len(S) + 1), key=lambda i: S[i - 1:]) print(SA[K - 1])