結果
問題 |
No.656 ゴルフ
|
ユーザー |
![]() |
提出日時 | 2020-10-09 22:02:53 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 307 bytes |
コンパイル時間 | 1,543 ms |
コンパイル使用メモリ | 166,076 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-20 11:25:03 |
合計ジャッジ時間 | 2,202 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int ans = 0; for (int i = 0; i < s.size(); i++) { if (s.at(i) == '0') { ans += 10; } else { ans += int(s.at(i)); } } cout << ans << endl; return 0; }