結果
| 問題 | No.1070 Missing a space |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-06 13:55:04 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 258 bytes |
| 記録 | |
| コンパイル時間 | 1,535 ms |
| コンパイル使用メモリ | 184,000 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-29 12:38:51 |
| 合計ジャッジ時間 | 3,020 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
typedef long long ll;
int main(){
string c; cin>>c;
ll ans=0;
rep(i,c.size()-1){
string s=c.substr(i+1,c.size());
if(s[0]!='0') ans++;
}
cout << ans << endl;
}