結果

問題 No.509 塗りつぶしツール
ユーザー aim_cpo
提出日時 2018-02-26 03:01:13
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 1,522 ms
コンパイル使用メモリ 165,836 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-17 18:58:29
合計ジャッジ時間 2,222 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int cont[]={3,2,2,2,3,2,3,2,4,3};
string s;

int main(){
  cin>>s;
  int n=(int)s.size();
  int ans=0;
  for(int i=0;i<n;i++){
    ans+=cont[s[i]-'0'];
  }
  cout<<ans+1<<"\n";
  return 0;
}
0