- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
using System;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Text;
using System.Xml.Linq;
namespace SplitSpace {
class Program {
static void Main(string[] args) {
test();
}
static void test() {
if(testfun(0, 0, 3, 1020, 0.05*180/Utils.PI, 1, 40, 5.80020838542985, 5.80020838542985, 0.0125032560359095)) return;
if(testfun(0, 0, 3, 1020, 0.05*180/Utils.PI, 2, 5, 1.75, 9.85005209635745, 0.00156290700448869)) return;
if(testfun(0, 0, 3, 1020, 0.05*180/Utils.PI, 3, 1.5, 0.0375078144536192, 0.0375078144536192, 0.000468872101346607)) return;
if(testfun(0, 0, 3, 219, 0.00, 1, 15.000, 4.900000000, 4.900000000, 0.000000000)) return;
if(testfun(0, 0, 3, 219, 0.50, 1, 15.000, 4.900000415, 4.900000415, 0.000142791)) return;
if(testfun(0, 0, 3, 219, 5.00, 1, 15.000, 4.900415674, 4.900415674, 0.014290277)) return;
if(testfun(0, 0, 3, 219, 5.10, 1, 15.000, 4.900441130, 4.900441130, 0.014868082)) return;
if(testfun(0, 0, 3, 219, 5.90, 1, 15.000, 4.900683170, 4.900683170, 0.019903983)) return;
// Спустя 8369 строчек
// ...
// ...
// ...
if(testfun(2, 1, 4, 1420, 55.00, 2, 7.000, 5.512975201, 5.512975201, 1.316853521)) return;
if(testfun(2, 1, 4, 1420, 60.00, 2, 7.000, 5.817691454, 5.817691454, 1.558845727)) return;
if(testfun(2, 1, 4, 1420, 66.00, 2, 7.000, 6.589343466, 6.589343466, 1.708953962)) return;
if(testfun(2, 1, 4, 1420, 75.00, 2, 7.000, 7.385125168, 7.385125168, 2.367207113)) return;
if(testfun(2, 1, 4, 1420, 85.10, 2, 7.000, 8.438873737, 8.438873737, 3.248627191)) return;
if(testfun(2, 1, 4, 1420, 89.00, 2, 7.000, 8.848026526, 8.848026526, 3.610990132)) return;
if(testfun(2, 1, 4, 1420, 89.99, 2, 7.000, 8.932590260, 8.932590260, 3.699354242)) return;
if(testfun(2, 1, 4, 1420, 90.00, 2, 7.000, 8.932590181, 8.932590181, 3.700000000)) return;
MessageBox.Show("OK!");
}
static bool testfun(int dir, int coolType, int hotType, double dia, double angG, int angType, double Rad, double Tan1, double Tan2, double Bis) {
// тут всякие тесты
// ...
// ...
// ...
return false;
}
}
}