CF104A Blackjack
题目描述
Blackjack是一个扑克牌游戏。
Blackjack使用除了两张王以外的全部52张卡牌,也就是$2,3,4,5,6,7,8,9,10,J,Q,K,A$。其中规定$2,3,4,5,6,7,8,9,10$的点数为$2,3,4,5,6,7,8,9,10$,$J,Q,K$的点数均为$10$,$A$的点数同时为$1$或$11$,这取决于玩家的意愿。虽然扑克牌有花色,但是一张卡牌的点数与其花色无关。这个游戏的规则很简单:拿两张牌,如果这两张牌的点数之和等于$n$,玩家就赢了,否则玩家就输了。
现在玩家已经拿了一张黑桃$Q$,求在其他牌中再抽一张,能使玩家赢得游戏的方案数。
输入格式
一个整数$n(1
输出格式
一个整数,表示能使玩家赢得游戏的方案数。
说明/提示
In the first sample only four two's of different suits can earn the required sum of points.
In the second sample we can use all tens, jacks, queens and kings; overall it's $ 15 $ cards, as the queen of spades (as any other card) is only present once in the pack of cards and it's already in use.
In the third sample there is no card, that would add a zero to the current ten points.