結果
問題 | No.509 塗りつぶしツール |
ユーザー |
![]() |
提出日時 | 2018-08-16 18:07:36 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 271 bytes |
コンパイル時間 | 402 ms |
コンパイル使用メモリ | 55,124 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-03 03:39:37 |
合計ジャッジ時間 | 1,352 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }