結果
問題 | No.1070 Missing a space |
ユーザー |
![]() |
提出日時 | 2020-06-05 21:21:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 1,279 ms |
コンパイル使用メモリ | 89,240 KB |
最終ジャッジ日時 | 2025-01-10 21:58:30 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cstdio> #include <cstring> #include <cmath> using namespace std; using ll = long long; int main() { string c; cin >> c; int r = 0; for (auto& i : c) { r += i != '0'; } cout << r - 1 << endl; return 0; }