結果
| 問題 | No.671 1000000007 |
| コンテスト | |
| ユーザー |
ken8aisa
|
| 提出日時 | 2018-06-18 16:53:43 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 278 bytes |
| コンパイル時間 | 433 ms |
| コンパイル使用メモリ | 56,212 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 16:56:36 |
| 合計ジャッジ時間 | 964 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 9 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main() {
char s[1010];
cin >> s;
int cnt = 0;
for (int i = 0; i < 1010; i++) {
if (s[i] == '0')
cnt++;
else if (s[i] == 0)
break;
cout << cnt - 8 <<endl;
//cin >> s;
return 0;
}
return 0;
}
ken8aisa