結果
問題 | No.656 ゴルフ |
ユーザー |
|
提出日時 | 2018-10-06 13:58:14 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 633 ms |
コンパイル使用メモリ | 71,620 KB |
最終ジャッジ日時 | 2025-01-06 14:22:30 |
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
#include <iostream> #include <string> #include <algorithm> #include <numeric> using namespace std; int main() { string s; cin >> s; cout << accumulate(s.begin(), s.end(), 0) + count(s.begin(), s.end(), 48) * 10 - 432 << endl; }