結果

問題 No.671 1000000007
ユーザー michonz4
提出日時 2019-11-29 19:20:16
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 609 ms
コンパイル使用メモリ 56,384 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-20 21:29:03
合計ジャッジ時間 1,030 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

using namespace std;

int main() {
  string n;
  cin >> n;

  int cnt=0;
  for (auto &c:n) {
    if (c=='0') cnt++;
  }

  cout << abs(8-cnt) << endl;
}
0