結果

問題 No.509 塗りつぶしツール
ユーザー 👑 CleyL
提出日時 2020-03-05 00:59:12
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 507 ms
コンパイル使用メモリ 63,872 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-14 00:37:21
合計ジャッジ時間 1,365 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    string s;cin>>s;
    int ans = s.size()*2+1;
    for(int i = 0; s.size() > i; i++){
        if(s[i] == '8')ans+=2;
        if(s[i] == '0' || s[i] == '4' || s[i] == '6' || s[i] == '9')ans++;
    }
    cout << ans << endl;
}
0