Programming/Judge
Codeforces Problem 495A : Digital Counter
deviAk
2014. 12. 18. 12:00
반응형
Codeforces Problem 495A : Digital Counter
<문제>
<결과>
<코드>
#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;
}
반응형