結果
| 問題 |
No.289 数字を全て足そう
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-03 14:32:52 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 219 bytes |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 23,552 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-03-03 14:32:54 |
| 合計ジャッジ時間 | 1,442 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 21 |
ソースコード
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
void main(void){
char str[100000];
int sum = 0 , i = 0 ;
while(str[i] != '\0'){
if(isdigit(str[i])){
sum += str[i] - '0';
}
}
printf("%d\n",sum);
}
Maeda