結果
| 問題 |
No.509 塗りつぶしツール
|
| コンテスト | |
| ユーザー |
eve__fuyuki
|
| 提出日時 | 2018-03-14 09:40:30 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 270 bytes |
| コンパイル時間 | 434 ms |
| コンパイル使用メモリ | 55,964 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-26 06:27:25 |
| 合計ジャッジ時間 | 1,474 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 16 |
ソースコード
#include<iostream>
using namespace std;
int main(){
int n,ans = 1;
int count[10] = {3,2,2,2,3,2,3,2,4,3};
cin >> n;
if(n==0) ans += count[0];
while(n > 0){
ans += count[n % 10];
n /= 10;
}
cout << ans << endl;
return 0;
}
eve__fuyuki