結果
| 問題 | No.3487 Restricted Shiritori |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-10 20:46:12 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 239 bytes |
| 記録 | |
| コンパイル時間 | 798 ms |
| コンパイル使用メモリ | 146,732 KB |
| 実行使用メモリ | 9,744 KB |
| 最終ジャッジ日時 | 2026-09-02 13:10:31 |
| 合計ジャッジ時間 | 2,421 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_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';
}