Codeforces Problem 495A : Digital Counter
Codeforces Problem 495A : Digital Counter http://codeforces.com/contest/495/problem/A #include using namespace std; int main() { const int table[] = { 2, 7, 2, 3, 3, 4, 2, 5, 1, 2 }; int in_floor; scanf("%d", &in_floor); printf("%d\n", table[in_floor / 10] * table[in_floor % 10]); return 0; }
2014. 12. 18.