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