結果
| 問題 | No.3487 Restricted Shiritori |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-01 21:24:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 2,000 ms |
| コード長 | 161 bytes |
| 記録 | |
| コンパイル時間 | 133 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 137,088 KB |
| 最終ジャッジ日時 | 2026-04-01 21:25:30 |
| 合計ジャッジ時間 | 2,056 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
c1,c2,n = input().split() n = int(n) if c1==c2: if n==1: print(c1) else: print(c1+"a"*(n-2)+c2) else: if n==1: print(-1) else: print(c1+"a"*(n-2)+c2)