結果
| 問題 | No.289 数字を全て足そう |
| コンテスト | |
| ユーザー |
kachipan
|
| 提出日時 | 2023-06-22 16:44:09 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 36,608 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-23 09:30:53 |
| 合計ジャッジ時間 | 1,413 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 3 WA * 18 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
int main()
{
char str[10000] = "";
int ans = 0;
scanf("%s", str, sizeof(str));
for (int i = 0;str[i] != '\0';i++)
{
char* end;
int num = strtol(&str[i], &end, 10);
ans += num;
}
printf("%d", ans);
return 0;
}
kachipan