結果
| 問題 |
No.509 塗りつぶしツール
|
| ユーザー |
uzumakiyorumunn
|
| 提出日時 | 2017-06-11 23:05:22 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 257 bytes |
| コンパイル時間 | 369 ms |
| コンパイル使用メモリ | 56,676 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-24 16:37:24 |
| 合計ジャッジ時間 | 1,200 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 16 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
string n;
int ans=0;
int c[10]={1,0,0,0,1,0,1,0,2,1};
cin>>n;
ans+=n.size();
ans++;
for(int i=0;i<n.size();i++){
ans+=c[n[i]-'0'];
}
ans+=n.size();
cout<<ans<<endl;
}
uzumakiyorumunn