結果
| 問題 |
No.1070 Missing a space
|
| コンテスト | |
| ユーザー |
iqueue02
|
| 提出日時 | 2020-07-13 22:16:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 320 bytes |
| コンパイル時間 | 1,942 ms |
| コンパイル使用メモリ | 193,452 KB |
| 最終ジャッジ日時 | 2025-01-11 20:20:00 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n);i++)
#define sz(x) int(x.size())
typedef long long ll;
typedef pair<int,int> P;
constexpr int INF = 2e9;
int main() {
string s;
cin >> s;
int n = s.size();
cout << n - count(s.begin(), s.end(), '0') - 1 << endl;
return 0;
}
iqueue02