結果
| 問題 |
No.784 「,(カンマ)」
|
| コンテスト | |
| ユーザー |
rokuto
|
| 提出日時 | 2019-02-10 23:57:25 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 355 bytes |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 28,032 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-07 19:03:41 |
| 合計ジャッジ時間 | 774 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 5 WA * 5 |
ソースコード
#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;
}
rokuto