#include <iostream>
#include <sstream>
#include <iomanip>
#include <cstdio>
#include <string>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <utility>
#include <locale>
#include <algorithm>
#include <vector>
#include <queue>
#include <stack>
#include <list>
#include <set>
#include <climits>
#include <cfloat>
#include <map>
#include <functional>
using namespace std;
const long double PI=acos(-1);
int main() // 제3회 kriiicon
{
double info[4][5], criinpabu[5], pabuincri[5], fighting[4];
for(int i=0; i<4; i++)
for(int j=0; j<5; j++) scanf("%lf", &info[i][j]);
for(int i=0; i<4; i++)
if(info[i][2] >= 100.0) info[i][2] = 100.0;
for(int i=0; i<5; i++)
{
criinpabu[i] = info[0][i] - info[2][i] + info[3][i];
pabuincri[i] = info[1][i] - info[3][i] + info[2][i];
}
for(int i=0; i<2; i++)
{
double strength = 1.0 + info[i][1]/100.0;
fighting[i] = info[i][0] * strength * ((1.0 - info[i][2]) + info[i][2] * info[i][3]) * (1 + info[i][4]);
}
double cstrength = 1.0 + criinpabu[1]/100.0;
double pstrength = 1.0 + pabuincri[1]/100.0;
fighting[2] = criinpabu[0] * cstrength * ((1.0 - criinpabu[2]) + criinpabu[2] * criinpabu[3]) * (1.0 + criinpabu[4]);
fighting[3] = pabuincri[0] * pstrength * ((1.0 - pabuincri[2]) + pabuincri[2] * pabuincri[3]) * (1.0 + pabuincri[4]);
if(fighting[0] > fighting[2]) printf("-\n");
else if(fighting[0] == fighting[2]) printf("0\n");
else printf("+\n");
if(fighting[1] > fighting[3]) printf("-\n");
else if(fighting[1] == fighting[3]) printf("0\n");
else printf("+\n");
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
1720 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |