結果
| 問題 |
No.289 数字を全て足そう
|
| コンテスト | |
| ユーザー |
elta19371277
|
| 提出日時 | 2015-10-29 16:58:56 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 250 bytes |
| コンパイル時間 | 1,383 ms |
| コンパイル使用メモリ | 157,304 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-07 20:29:20 |
| 合計ジャッジ時間 | 2,289 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 1 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
char load[10000];
int main() {
cin >> load;
int ans = 0;
for (int i=0;i<strlen(load);i++) {
if (int(load[i]) >= 48 && int(load[i]) <= 57) {
ans += int(load[i])-48;
}
}
printf("%d\n", ans);
}
elta19371277