結果
| 問題 |
No.509 塗りつぶしツール
|
| コンテスト | |
| ユーザー |
oxyshower
|
| 提出日時 | 2020-01-12 14:20:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 378 bytes |
| コンパイル時間 | 3,110 ms |
| コンパイル使用メモリ | 166,332 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-29 01:46:41 |
| 合計ジャッジ時間 | 2,698 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 17 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#ifdef LOCAL_DEBUG
#include "LOCAL_DEBUG.hpp"
#endif
#define int long long
signed main(){
int n; cin >> n;
int ans = 1, cnt = 0;;
while(n > 0){
if(n % 10 == 6 || n % 10 == 9 || n % 10 == 0 || n % 10 == 4) ans++;
if(n % 10 == 8) ans += 2;
n /= 10;
cnt++;
}
cout << ans + cnt * 2 << endl;
return 0;
}
oxyshower