結果
問題 | No.784 「,(カンマ)」 |
ユーザー |
|
提出日時 | 2022-06-03 16:38:12 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 170 bytes |
コンパイル時間 | 873 ms |
コンパイル使用メモリ | 79,748 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-21 02:20:03 |
合計ジャッジ時間 | 1,392 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include<iostream> #include<string> using namespace std; int main(){ string n; cin>>n; int sz=n.size(); for(int i=3;i<sz;i+=3) n.insert(sz-i,","); cout<<n<<endl; }