-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdwiecyfrysilnii.cpp
51 lines (49 loc) · 1.16 KB
/
dwiecyfrysilnii.cpp
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <iostream>
using namespace std;
int main()
{
int ilosc_przypadkow;
cin>>ilosc_przypadkow;
for (int i=0; i<ilosc_przypadkow; i++)
{
int n;
cin>>n;
switch (n)
{
case 0:
cout<< "0 1"<< endl;
break;
case 1:
cout<< "0 1"<< endl;
break;
case 2:
cout<< "0 2"<< endl;
break;
case 3:
cout<< "0 6"<< endl;
break;
case 4:
cout<< "2 4"<< endl;
break;
case 5:
cout<< "2 0"<< endl;
break;
case 6:
cout<< "2 0"<< endl;
break;
case 7:
cout<< "4 0"<< endl;
break;
case 8:
cout<< "2 0"<< endl;
break;
case 9:
cout<< "8 0"<< endl;
break;
default:
cout<< "0 0"<< endl;
break;
}
}
return 0;
}