結果
| 問題 | No.3487 Restricted Shiritori |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2026-04-01 21:23:20 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 111 bytes |
| 記録 | |
| コンパイル時間 | 842 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 90,880 KB |
| 最終ジャッジ日時 | 2026-08-16 12:16:52 |
| 合計ジャッジ時間 | 7,067 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 25 |
ソースコード
s, e, N = input()
N = int(N)
if N == 1:
print(s if s == e else -1)
else:
print(s + "a" * (N - 2) + e)