結果
| 問題 | 
                            No.509 塗りつぶしツール
                             | 
                    
| コンテスト | |
| ユーザー | 
                             a01sa01to
                         | 
                    
| 提出日時 | 2025-06-21 00:30:59 | 
| 言語 | C++23  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 513 bytes | 
| コンパイル時間 | 3,283 ms | 
| コンパイル使用メモリ | 275,688 KB | 
| 実行使用メモリ | 7,848 KB | 
| 最終ジャッジ日時 | 2025-06-21 00:31:04 | 
| 合計ジャッジ時間 | 4,333 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 11 WA * 16 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
  #include "settings/debug.cpp"
#else
  #define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
int main() {
  cin.tie(nullptr)->sync_with_stdio(false);
  string n;
  cin >> n;
  array<int, 10> cnt = { 1, 0, 0, 0, 1, 0, 1, 0, 2, 1 };
  int ans = 0;
  ans += n.size();
  for (char c : n) ans += cnt[c - '0'];
  ans++;
  ans += n.size();
  cout << ans << '\n';
  return 0;
}
            
            
            
        
            
a01sa01to