結果
| 問題 |
No.509 塗りつぶしツール
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-04-30 01:36:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 272 bytes |
| コンパイル時間 | 685 ms |
| コンパイル使用メモリ | 64,888 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 19:19:04 |
| 合計ジャッジ時間 | 1,470 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 16 |
ソースコード
#include <iostream>
#include <string>
int main() {
std::string n;
int c = 1;
int m[10] = {3, 2, 2, 2, 3, 2, 3, 2, 4, 3};
std::cin >> n;
for (int i = 0; i < n.size(); i++) {
c += m[(int)n[i] - (int)'0'];
}
std::cout << c << std::endl;
}