-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
120 lines (113 loc) · 5.37 KB
/
main.c
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
//
// Final.c
// Zadani3_DSA
//
// Created by Simon Kokavec on 07/05/2021.
//
#include "bdd.c"
int main(){
int answer = 0;
// Nafromátované pekné používateľské rozhranie
printf("\n\n");
printf(" Welcome to Zadanie 3 from DSA \n\n");
printf("--------------------------------------------------\n\n");
printf(" PLEASE CHOOSE ONE OF THE TESTS BELOW \n\n");
printf("--------------------------------------------------\n\n");
printf("1 for Test 1 \t- 3 variables and 2000 bool functions\n");
printf("2 for Test 2 \t- 5 variables and 2000 bool functions\n");
printf("3 for Test 3 \t- 10 variables and 2000 bool functions\n");
printf("4 for Test 4 \t- 13 variables and 2000 bool functions\n");
printf("5 for Test 5 \t- 14 variables and 2000 bool functions\n");
printf("6 for Test 6 \t- 15 variables and 2000 bool functions\n");
printf("7 for Test 7 \t- 16 variables and 2000 bool functions\n");
printf("8 for Test 8 \t- 17 variables and 2000 bool functions\n");
printf("9 for Test 9 \t- 18 variables and 2000 bool functions \n");
printf("10 for Test 10 \t- 19 variables and 2000 bool functions\n");
printf("11 for Test 11 \t- 20 variables and 2000 bool functions\n");
printf("--------------------------------------------------\n");
// Prevzatie odpovede od používateľa
scanf("%d", &answer);
// Spustenie príslušného testu
switch(answer){
case 1:
printf("--------------------------------------------------\n\n");
printf("Starting Test 1...\n");
printf("Test should durate less than 1 second\n");
printf("--------------------------------------------------\n");
test(3,2000);
break;
case 2:
printf("--------------------------------------------------\n\n");
printf("Starting Test 2...\n");
printf("Test should durate less than 1 second\n");
printf("--------------------------------------------------\n");
test(5,2000);
break;
case 3:
printf("--------------------------------------------------\n\n");
printf("Starting Test 3...\n");
printf("Test should durate less than 2 seconds\n");
printf("--------------------------------------------------\n");
test(10,2000);
break;
case 4:
printf("--------------------------------------------------\n\n");
printf("Starting Test 4...\n");
printf("Test should durate between 10 and 15 seconds\n");
printf("--------------------------------------------------\n");
test(13,2000);
break;
case 5:
printf("--------------------------------------------------\n\n");
printf("Starting Test 5...\n");
printf("Test should durate between 20 and 30 seconds\n");
printf("--------------------------------------------------\n");
test(14,2000);
break;
case 6:
printf("--------------------------------------------------\n\n");
printf("Starting Test 6...\n");
printf("Test should durate between 45 and 55 seconds\n");
printf("--------------------------------------------------\n");
test(15,2000);
break;
case 7:
printf("--------------------------------------------------\n\n");
printf("Starting Test 7...\n");
printf("Test should durate between 95 and 115 seconds\n");
printf("--------------------------------------------------\n");
test(16,2000);
break;
case 8:
printf("--------------------------------------------------\n\n");
printf("Starting Test 8...\n");
printf("Test should durate around 220 seconds\n");
printf("--------------------------------------------------\n");
test(17,2000);
break;
case 9:
printf("--------------------------------------------------\n\n");
printf("Starting Test 9...\n");
printf("Test should durate around 7 minutes\n");
printf("--------------------------------------------------\n");
test(18,2000);
break;
case 10:
printf("--------------------------------------------------\n\n");
printf("Starting Test 10...\n");
printf("Test should durate around 15 minutes\n");
printf("--------------------------------------------------\n");
test(19,2000);
break;
case 11:
printf("--------------------------------------------------\n\n");
printf("Starting Test 11...\n");
printf("Test should durate around 30 minutes\n");
printf("--------------------------------------------------\n");
test(20,2000);
break;
default:
printf("You entered wrong command... Exiting\n");
}
return 0;
}