結果
| 問題 | No.1070 Missing a space |
| コンテスト | |
| ユーザー |
seratna
|
| 提出日時 | 2020-06-05 21:46:18 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 495 bytes |
| 記録 | |
| コンパイル時間 | 588 ms |
| コンパイル使用メモリ | 114,672 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-10 12:58:06 |
| 合計ジャッジ時間 | 1,325 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<map>
#include<cmath>
#include<queue>
#include<stack>
#include<list>
#define endl "\n"
using namespace std;
using ll = long long;
const ll MOD = 1e9+7;
const ll INF = 1e18;
#define REP(i, n) for(int i = 0; i < n; i++)
using Graph = vector<vector<int>>;
int main(){
string c;
cin>>c;
ll ans = c.length()-1;
for(int i=0;i<c.length();i++){
if(c[i] == '0') ans--;
}
cout<<ans<<endl;
}
seratna