結果
| 問題 | No.289 数字を全て足そう |
| コンテスト | |
| ユーザー |
pracode
|
| 提出日時 | 2018-09-16 20:49:38 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 236 bytes |
| 記録 | |
| コンパイル時間 | 189 ms |
| コンパイル使用メモリ | 36,964 KB |
| 最終ジャッジ日時 | 2026-02-22 01:49:41 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 3 WA * 18 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
int main()
{
char str[100001];
int i;
int sum=0;
scanf("%s",str);
for(i=0;str[i]!='\0';i++){
sum+=atoi(&str[i]);
}
printf("%d\n",sum);
return 0;
}
pracode