結果
問題 |
No.1070 Missing a space
|
ユーザー |
|
提出日時 | 2021-03-15 20:37:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 198 bytes |
コンパイル時間 | 1,946 ms |
コンパイル使用メモリ | 191,548 KB |
最終ジャッジ日時 | 2025-01-19 17:20:39 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int i,ans; string c; cin >> c; ans=0; for(i=1; i<c.size(); i++){ if(c[i]!='0'){ ans++; } } cout << ans << endl; return 0; }