結果
| 問題 | No.3487 Restricted Shiritori |
| コンテスト | |
| ユーザー |
回転
|
| 提出日時 | 2026-04-01 21:21:51 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 140 bytes |
| 記録 | |
| コンパイル時間 | 325 ms |
| コンパイル使用メモリ | 85,224 KB |
| 実行使用メモリ | 136,840 KB |
| 最終ジャッジ日時 | 2026-04-01 21:22:22 |
| 合計ジャッジ時間 | 4,526 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 3 |
ソースコード
s,e,N = input().split()
if(int(N) == 1 and s != e):
print(-1)
else:
ans = s
ans += "a" * (int(N)-2)
ans += e
print(ans)
回転