結果
| 問題 | No.509 塗りつぶしツール |
| コンテスト | |
| ユーザー |
ykprogram
|
| 提出日時 | 2018-08-16 18:07:36 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 271 bytes |
| 記録 | |
| コンパイル時間 | 495 ms |
| コンパイル使用メモリ | 71,024 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-19 05:41:50 |
| 合計ジャッジ時間 | 2,339 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 16 |
ソースコード
#include <iostream>
#include <string>
int main(void){
int num[10] = {
1, 0, 0, 0, 1, 0, 1, 0, 2, 1
};
int count=1;
std::string n;
std::cin >> n;
for (int i = 0; i < n.length(); i++){
count += num[ n[i]-'0'] +2;
}
std::cout << count <<std::endl;
return 0;
}
ykprogram