結果
| 問題 |
No.9011 数字を全て足そう(数字だけ)
|
| ユーザー |
Benzenehat
|
| 提出日時 | 2020-06-01 10:43:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 409 bytes |
| コンパイル時間 | 2,551 ms |
| コンパイル使用メモリ | 165,804 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-21 10:24:16 |
| 合計ジャッジ時間 | 2,615 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
// #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
#define Graph vector<vector<int>>
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1000000007;
int main(){
string S;
cin >> S;
int ans = 0;
rep(i, S.size()){
ans += S[i] - '0';
}
cout << ans << endl;
}
Benzenehat