結果
| 問題 |
No.1070 Missing a space
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-05 20:28:54 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 203 bytes |
| コンパイル時間 | 1,917 ms |
| コンパイル使用メモリ | 55,032 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-19 22:09:08 |
| 合計ジャッジ時間 | 1,470 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}