結果
| 問題 | No.3487 Restricted Shiritori |
| コンテスト | |
| ユーザー |
kidodesu
|
| 提出日時 | 2026-04-01 21:52:46 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 2,000 ms |
| コード長 | 140 bytes |
| 記録 | |
| コンパイル時間 | 245 ms |
| コンパイル使用メモリ | 85,444 KB |
| 実行使用メモリ | 137,776 KB |
| 最終ジャッジ日時 | 2026-04-01 21:53:08 |
| 合計ジャッジ時間 | 1,951 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
s, h, t = list(map(str, input().split())) if s != h and t == "1": print(-1) elif t == "1": print(s) else: print(s + "a" * (int(t)-2) + h)
kidodesu