結果
問題 |
No.671 1000000007
|
ユーザー |
![]() |
提出日時 | 2018-06-26 17:03:22 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 322 bytes |
コンパイル時間 | 1,610 ms |
コンパイル使用メモリ | 193,032 KB |
最終ジャッジ日時 | 2025-01-06 11:36:25 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main(){ cin.tie(0); ios::sync_with_stdio(false); int ans = 8; string s; cin >> s; rep(i,s.size()){ if(s[i] == '0'){ ans--; } } cout << abs(ans) << endl; return 0; }