結果
問題 |
No.509 塗りつぶしツール
|
ユーザー |
|
提出日時 | 2017-04-28 22:23:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 539 bytes |
コンパイル時間 | 975 ms |
コンパイル使用メモリ | 107,320 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 17:59:08 |
合計ジャッジ時間 | 1,878 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 21 WA * 6 |
ソースコード
#include "iostream" #include "climits" #include "list" #include "queue" #include "stack" #include "set" #include "functional" #include "algorithm" #include "math.h" #include "utility" #include "string" #include "map" #include "unordered_map" #include "iomanip" #include "random" using namespace std; const long long int MOD = 1000000007; int N, K; int num[10] = { 3,1,1,1,3,1,3,1,5,3}; int ans = 2; int main() { ios::sync_with_stdio(false); cin >> N; while (N) { ans += num[N % 10]; N /= 10; } cout << ans << endl; return 0; }