結果
| 問題 |
No.1070 Missing a space
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-05 21:23:18 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 353 bytes |
| コンパイル時間 | 2,093 ms |
| コンパイル使用メモリ | 193,420 KB |
| 最終ジャッジ日時 | 2025-01-10 22:01:57 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
int main(){
std::string s;
while(std::cin >> s){
int ans = 0;
int N = (int)s.size();
for(int i = 1; i < N; ++i){
auto a = s.substr(0, i);
auto b = s.substr(i, N);
if(b[0] != '0') ++ans;
//std::cerr << a << " " << b << "\n";
}
std::cout << ans << "\n";
}
return 0;
}