結果
| 問題 | No.3487 Restricted Shiritori |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-04-01 21:21:16 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 2,000 ms |
| + 31µs | |
| コード長 | 145 bytes |
| 記録 | |
| コンパイル時間 | 215 ms |
| コンパイル使用メモリ | 96,360 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-08-16 12:08:13 |
| 合計ジャッジ時間 | 3,600 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
S, E, N = input().split()
N = int(N)
if 2 <= N or S == E:
if N == 1:
print(S)
else:
print(S*(N-1)+E)
else:
print(-1)
detteiuu