結果
| 問題 |
No.784 「,(カンマ)」
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-06 15:57:28 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 238 bytes |
| コンパイル時間 | 712 ms |
| コンパイル使用メモリ | 66,936 KB |
| 最終ジャッジ日時 | 2025-02-13 23:03:35 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <iostream>
using namespace std;
int main(void){
string s;
cin >> s;
int n = (s.size()-1) / 3;
int p = s.size()-3;
for (int i = 0; i < n; i++) {
s.insert(p - 3 * i, ",");
}
cout << s << endl;
}