結果

問題 No.509 塗りつぶしツール
ユーザー ninoinui
提出日時 2020-02-19 13:22:39
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 1,711 ms
コンパイル使用メモリ 168,320 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-08 00:06:31
合計ジャッジ時間 2,888 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  vector<int> V = {1,0,0,0,1,0,1,0,2,1};
  int ans = to_string(N).size() * 2 + 1;
  while (N) ans += V.at(N % 10), N /= 10;
  cout << ans << "\n";
}
0