結果
| 問題 | No.1070 Missing a space |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-05 20:28:54 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 203 bytes |
| 記録 | |
| コンパイル時間 | 5,457 ms |
| コンパイル使用メモリ | 73,720 KB |
| 実行使用メモリ | 81,692 KB |
| 最終ジャッジ日時 | 2026-04-02 18:37:58 |
| 合計ジャッジ時間 | 847 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <iostream>
#include <cstring>
using namespace std;
int main(){
string C;int cnt=0;
cin >> C;
for(int i=C.size()-1;i>0;i--)if(C[i]!='0')cnt++;
cout << cnt << endl;
return 0;
}