結果
| 問題 |
No.784 「,(カンマ)」
|
| コンテスト | |
| ユーザー |
C. S.
|
| 提出日時 | 2019-03-14 14:20:00 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 286 bytes |
| コンパイル時間 | 987 ms |
| コンパイル使用メモリ | 28,800 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 09:55:20 |
| 合計ジャッジ時間 | 1,206 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <stdio.h>
int main()
{
char n[64];
scanf("%s", n);
int c;
for(c=0; n[c]!='\0';c++);
printf("%c", n[0]);
for(int i=1; i<c; i++){
if((c-i)%3 == 0){
printf(",");
}
printf("%c", n[i]);
}
printf("\n");
}
C. S.