Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #include <iostream>
- #include <algorithm>
- #include <cstdlib>
- #include <cmath>
- #include <vector>
- #include <map>
- #include <set>
- #include <string>
- #include <cstring>
- #include <queue>
- #include <ctime>
- #include <cassert>
- using namespace std;
- struct Player
- {
- void send(string mes)
- {
- cout << mes << endl;
- }
- int get_val()
- {
- int a;
- cin >> a;
- return a;
- }
- };
- const int IT = 990;
- void play(int n, int c, int start_ans, Player player)
- {
- int best_ans = start_ans;
- double t = 100;
- double c = 0.9;
- double cur_e = start_ans;
- for (int i = 0; i < IT; i++)
- {
- player.send("decline");
- double new_e = player.get_val();
- double de = new_e - cur_e;
- double prob = 1;
- if (de <= 0)
- {
- }
- }
- }
- void solve()
- {
- int n, c;
- }
- int main()
- {
- srand(31515);
- solve();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement