-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFCTRL3.cpp
More file actions
28 lines (26 loc) · 713 Bytes
/
FCTRL3.cpp
File metadata and controls
28 lines (26 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int n,i,D;
scanf("%i",&D);
for (i=0;i<D;i++){
scanf("%i",&n);
if(n>9) printf("0 0\n");
else if(n<=1) printf("0 1\n");
else switch(n)
{
case 2: printf("0 2\n"); break;
case 3: printf("0 6\n"); break;
case 4: printf("2 4\n"); break;
case 5: printf("2 0\n"); break;
case 6: printf("2 0\n"); break;
case 7: printf("4 0\n"); break;
case 8: printf("2 0\n"); break;
case 9: printf("8 0\n"); break;
}
}
system("PAUSE");
return EXIT_SUCCESS;
}