[cpp] 테스트케이스 3번만 틀려요
#include<iostream> #include <vector> #include <algorithm> #include <cmath> using namespace std; // 0 win // 1 lose // 2 draw pair<int, int> arr[7] = { {0, 0}, {1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4}, {3, 4} }; double ans; double F[6]; double prob[6][6][3]; void dfs(int k, int rst, double tot, vector<int>& score) { int a = arr[k].first; int b = arr[k].second; double p = (rst == -1) ? 1.0 : prob[a][b][rst]; vector<int> tmp = score; if (rst == 0) score[a] += 3; else if (rst == 1) score[b] += 3; e...
- 연습문제 톡
- 날짜
- 2024-08-10 20:47:19
- 작성자
- mun9769
- 댓글
- 2