結果

問題 No.784 「,(カンマ)」
ユーザー rokuto
提出日時 2019-02-11 00:02:44
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 355 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-07 19:22:13
合計ジャッジ時間 594 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 5 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(void)
{
    char num[10000];
    int i=0,j;
    scanf("%s",num);

    while(num[i]!='\0')
    {
        j=i+1;
        printf("%c",num[i]);
        i++;
        if(num[i]=='\0')break;
        if(j%3==0)
            {
                printf(",");
                continue;
            }
        

        
    }

    return 0;
}
0