結果
| 問題 | No.3487 Restricted Shiritori |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-10 20:46:12 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 239 bytes |
| 記録 | |
| コンパイル時間 | 1,260 ms |
| コンパイル使用メモリ | 146,264 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-10 20:48:54 |
| 合計ジャッジ時間 | 3,226 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 3 |
ソースコード
#include <iostream>
int main() {
std::cin.tie(nullptr) -> sync_with_stdio(false);
char s, e;
int n;
std::cin >> s >> e >> n;
if(n <= 1) {
std::cout << "-1\n";
return 0;
}
std::cout << s << std::string(n - 2, 'a') << e << '\n';
}