본문 바로가기
Programming/Judge

Codeforces Problem 495A : Digital Counter

by deviAk 2014. 12. 18.
반응형

Codeforces Problem 495A : Digital Counter


http://codeforces.com/contest/495/problem/A


<문제>



<결과>



<코드>

#include <iostream>
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;
}


반응형