結果
| 問題 |
No.2399 This Is Truly Final Edition
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-11 15:30:56 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 435 bytes |
| コンパイル時間 | 1,362 ms |
| コンパイル使用メモリ | 167,044 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-18 08:58:14 |
| 合計ジャッジ時間 | 1,885 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
コンパイルメッセージ
main.cpp: In function 'void debug(Args ...)':
main.cpp:6:34: warning: fold-expressions only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
6 | ((std::cout << args << " "), ...);
| ^~~
ソースコード
#include "bits/stdc++.h"
#define int long long
#define all(x) x.begin(), x.end()
template<typename... Args>
void debug(Args... args) {
((std::cout << args << " "), ...);
std::cout << "\n";
}
void solve(){
std::string s, t;
int n;
std::cin >> s >> t >> n;
std::cout << s;
while(n --) std::cout << "_" << t;
}
signed main(){
std::ios::sync_with_stdio(false); std::cin.tie(0);
solve();
return 0;
}