結果
| 問題 | No.289 数字を全て足そう |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-07 18:26:02 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 248 bytes |
| コンパイル時間 | 599 ms |
| コンパイル使用メモリ | 30,080 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-23 14:51:46 |
| 合計ジャッジ時間 | 1,000 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 21 |
ソースコード
#include<stdio.h>
int main(void){
char str[10000];
char str2[10000];
int sum=0;
scanf("%s",&str);
for(int i=0;i<10000;i++){
if(str[i]>=0&&str[i]<=9){
sum+=str[i];
}
}
printf("%d",sum);
}