結果

問題 No.784 「,(カンマ)」
ユーザー sanyonfusanyonfu
提出日時 2019-06-04 21:28:18
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 2,058 ms
コンパイル使用メモリ 159,832 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-17 23:47:46
合計ジャッジ時間 1,913 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 WA -
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 WA -
testcase_05 AC 2 ms
4,348 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 2 ms
4,348 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 1 ms
4,348 KB
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;


int main(){
        string N;
        cin >> N;

        int A;

        A = N.size()%3;

        for(int i = 0; i < N.size(); i++){
                if(A%3==0&&A!=0){
                        cout << ",";
                }
                cout << N.at(i);
                A++;

        }
}
0