結果
| 問題 |
No.509 塗りつぶしツール
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-01-04 20:43:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 250 bytes |
| コンパイル時間 | 693 ms |
| コンパイル使用メモリ | 64,948 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-23 03:46:18 |
| 合計ジャッジ時間 | 2,083 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 16 |
ソースコード
#include <iostream>
using namespace std;
int main(){
string n;
cin >> n;
int hole[10] = {1, 0, 0, 0, 1, 0, 1, 0, 2, 1};
int ans = 1;
for(int i = 0; i < n.size(); i++){
ans += hole[n[i] - '0'] + 2;
}
cout << ans << endl;
}