結果
| 問題 | No.3487 Restricted Shiritori |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2026-04-01 21:23:20 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 111 bytes |
| 記録 | |
| コンパイル時間 | 496 ms |
| コンパイル使用メモリ | 85,332 KB |
| 実行使用メモリ | 152,040 KB |
| 最終ジャッジ日時 | 2026-04-01 21:24:42 |
| 合計ジャッジ時間 | 2,832 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_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)