結果
| 問題 | No.671 1000000007 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-20 14:43:22 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 432 bytes |
| 記録 | |
| コンパイル時間 | 959 ms |
| コンパイル使用メモリ | 181,656 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-17 11:13:53 |
| 合計ジャッジ時間 | 1,352 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 6 WA * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string s, t = "1000000007";
//100000007
int ans = 0;
cin >> s;
for (int i = 0; i < t.size(); i++) {
if (s[i] != t[i] && t[i] == '0')
ans++;
}
cout << ans << endl;
return 0;
}