結果
問題 | No.1070 Missing a space |
ユーザー |
|
提出日時 | 2020-06-06 21:15:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 1,738 ms |
コンパイル使用メモリ | 166,092 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 13:58:13 |
合計ジャッジ時間 | 2,190 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() typedef long long ll; #define MOD 998244353 using namespace std; int main() { string s; cin >> s; int ans = 0; for(int i = 0; i < s.size() - 1; i++) { if(s[i + 1] != '0') { ans++; } } cout << ans << endl; }