Advertisement
n4wn4w

1 zadacha koe kude

Mar 27th, 2015
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.29 KB | None | 0 0
  1. 1  joro the football player /////////////////////////////////////////////////////////////////////////
  2.  
  3.  
  4. 2  the voleyball player   ////////////////////////////////////////////////////////////////////////////////
  5.  
  6.  
  7. 3 work hours ////////////////////////////////////////////////////////////////////////////////////////
  8.  
  9.  
  10. 4 cinema ////////////////////////////////////////////////////////////////////////////////
  11.  
  12.  
  13. 5 razstoqnie v 2 tochki  /////////////////////////////////////////////////////////////////////////
  14.  
  15. double a = Math.Sqrt(Math.Pow((cx - bx),2)+Math.Pow((cy - by),2)); razstoqnie  mejdu 2 to4ki
  16.  
  17.  
  18.  double p = (a + b + c) / 2
  19.   double area = Math.Sqrt(p*(p-a)*(p-b)*(p-c));
  20.  
  21.  
  22.  
  23. 6  date time ////////////////////////////////////////////////////////////////////////
  24.  
  25. DateTime startTime = new DateTime(2014, 01, 01, startHour, startMinutes, startSeconds);
  26.  
  27. DateTime endTime = startTime.AddHours(duratationHour).AddMinutes(duratationMinutes).AddSeconds(duratationSeconds);
  28.  
  29.  
  30. 7   fruit market //////////////////////////////////////////////////////////////
  31.  
  32. switch / case  i  bolevi promellivi
  33.  
  34.  
  35. 8 inside the building ////////////////////////////////////////////////////////////////////////////
  36.  
  37.  
  38. if (((x >= h && x <= 2 * h) && (y >= h && y <= 4 * h)) || ((x >= 0 && x <= 3 * h) && (y >= 0 && y <= h)))
  39.  
  40.  
  41. fit in box ////////////////////////////////////////////////////////////////////////////////
  42.  
  43.  
  44. if (w1 < w2 && h1 < h2 && d1 < d2)
  45. {
  46. Console.WriteLine("({0}, {1}, {2}) < ({3}, {4}, {5})", w1, h1, d1, w2, h2, d2);
  47. }
  48.  
  49.  
  50.  
  51. 25 july morning   melon / watermelon ///////////////////////////////////////////////////////////////
  52.  
  53. int dayOfWeek = i % 7;
  54.  
  55. swith /case po cifri
  56.  
  57.  
  58.  
  59. 25 july evening  Electricity /////////////////////////////////////////////////////////////////////      
  60.  
  61.  
  62. DateTime firstStart = DateTime.Parse("00:00");
  63. DateTime firstEnd = DateTime.Parse("08:59");
  64.  
  65.  
  66.  if (firstStart <= time && time <= firstEnd)
  67.  {
  68. totalPower = totalPower + ((lampPower * 1) + (compPower * 8));
  69.  }
  70.  
  71.  
  72.  
  73. 22 avgust TABLES //////////////////////////////////////////////////////////////////////////
  74.  
  75. tablesPossible - tablesToBeMade < 0 ? 0 : tablesPossible - tablesToBeMade);
  76.  
  77. Math.Max(0,tablesPossible - tablesToBeMade),
  78. Math.Max(0,allLegs - tablesToBeMade*4) );
  79.  
  80.  
  81.  
  82. 26 avgust  TIC TAE TOE ////////////////////////////////////////////////////////////////////////////
  83.  
  84.  
  85.  value = (value + position) - 1;
  86. Console.WriteLine((long)Math.Pow(value,position));
  87.  
  88.  
  89.  
  90. 7 Noemvri BUDGET //////////////////////////////////////////////////////////////////////////
  91.  
  92. Console.WriteLine("No, not enough {0}.", Math.Abs(moneyLeft));
  93.  
  94.  
  95.  
  96. 8 noemvri BABA TINCHE AIRLINES //////////////////////////////////////////////////////////////////
  97.  
  98.  // nachi za 4etene na nqkolko stoinosti ot edin red ReadLine
  99. string[] firstClassInfo = Console.ReadLine().Split();
  100. int firstClassPassengers = int.Parse(firstClassInfo[0]);
  101. int firstClassFrequent = int.Parse(firstClassInfo[1]);
  102. int firstClassMeals = int.Parse(firstClassInfo[2]);
  103.  
  104.  
  105. 19 dekemvri TravelerBOB//////////////////////////////////////////////////////////
  106.  
  107. //totalTravels = totalTravels * 1.05;
  108.  
  109.  
  110.  
  111. 20 dekemvri  TANK ////////////////////////////////////////////////////////////////////////
  112. double result = Math.Ceiling(totalMonthsRequired);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement