結果
問題 |
No.509 塗りつぶしツール
|
ユーザー |
👑 |
提出日時 | 2020-03-05 00:56:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 277 bytes |
コンパイル時間 | 547 ms |
コンパイル使用メモリ | 63,872 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 00:37:16 |
合計ジャッジ時間 | 1,509 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 27 |
ソースコード
#include <iostream> using namespace std; int main(){ string s;cin>>s; int ans = s.size()+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; }