Advertisement
Guest User

Untitled

a guest
Nov 29th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.88 KB | None | 0 0
  1. #define _CRT_SECURE_NO_WARNINGS
  2.  
  3. #include <iostream>
  4. #include <algorithm>
  5. #include <cstdlib>
  6. #include <cmath>
  7. #include <vector>
  8. #include <map>
  9. #include <set>
  10. #include <string>
  11. #include <cstring>
  12. #include <queue>
  13. #include <ctime>
  14. #include <cassert>
  15. using namespace std;
  16.  
  17. struct Player
  18. {
  19.     void send(string mes)
  20.     {
  21.         cout << mes << endl;
  22.     }
  23.  
  24.     int get_val()
  25.     {
  26.         int a;
  27.         cin >> a;
  28.         return a;
  29.     }
  30. };
  31.  
  32. const int IT = 990;
  33.  
  34. void play(int n, int c, int start_ans, Player player)
  35. {
  36.     int best_ans = start_ans;
  37.    
  38.     double t = 100;
  39.     double c = 0.9;
  40.     double cur_e = start_ans;
  41.    
  42.     for (int i = 0; i < IT; i++)
  43.     {
  44.         player.send("decline");
  45.         double new_e = player.get_val();
  46.         double de = new_e - cur_e;
  47.        
  48.         double prob = 1;
  49.        
  50.         if (de <= 0)
  51.         {
  52.            
  53.         }
  54.     }
  55. }
  56.  
  57. void solve()
  58. {
  59.     int n, c;
  60.  
  61. }
  62.  
  63. int main()
  64. {
  65.     srand(31515);
  66.  
  67.     solve();
  68.  
  69.     return 0;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement