結果
問題 |
No.509 塗りつぶしツール
|
ユーザー |
![]() |
提出日時 | 2017-04-28 22:49:29 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 454 bytes |
コンパイル時間 | 588 ms |
コンパイル使用メモリ | 65,372 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-13 18:14:23 |
合計ジャッジ時間 | 1,515 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 16 |
ソースコード
#include<string> #include<iostream> #include<cstdio> #include<vector> #include<algorithm> #include<functional> using namespace std; typedef long long int llint; #define pub push_back //A //BABA int main(void){ string n; int i,ans=1; cin>>n; for(i=0;i<n.size();i++){ switch(n[i]){ case '8': ans++; case '0':case '4':case '6':case '9': ans++; case '1':case '2':case '3':case '5':case'7': ans+=2; } } cout<<ans<<endl; return 0; }