結果
問題 | No.671 1000000007 |
ユーザー |
|
提出日時 | 2020-07-19 21:40:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 309 bytes |
コンパイル時間 | 1,686 ms |
コンパイル使用メモリ | 168,096 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-17 14:17:03 |
合計ジャッジ時間 | 2,191 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define rep(i, a, n) for (int i = a; i < n; ++i) int main() { string n; cin >> n; int cnt = 0; rep(i, 0, n.length()) { if (n[i] == '0') cnt++; } cout << abs(8 - cnt) << endl; return 0; }