結果
| 問題 | No.509 塗りつぶしツール |
| コンテスト | |
| ユーザー |
notetonous
|
| 提出日時 | 2017-08-03 17:03:35 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 290 bytes |
| 記録 | |
| コンパイル時間 | 357 ms |
| コンパイル使用メモリ | 71,152 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-28 05:26:27 |
| 合計ジャッジ時間 | 1,675 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 16 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
string s;
int main(){
int n=0;
cin >> s;
for(int i=0;i<s.size();i++){
if(s[i]=='0' || s[i]=='4' || s[i]=='6' || s[i]=='9')n++;
else if(s[i]=='8')n+=2;
}
n+=(2*s.size());
n+=1;
cout << n << endl;
return 0;
}
notetonous