hiho week 275 register

Ended

Participants:51

Verdict:Accepted
Score:100 / 100
Submitted:2019-10-07 00:11:41

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    double a, b, c, d, precision, recall, ans;
    int n;
    char a1[2];
    cin >> n;
    a = 0, b = 0, c = 0, d = 0;
    while (n--)
    {
        cin >> a1[0] >> a1[1];
        if (a1[0] == '+'&&a1[1] == '+')
        {
            a += 1;
        }
        else if (a1[0] == '+'&&a1[1] == '-')
        {
        
            b += 1;
        }
        else if (a1[0] == '-'&&a1[1] == '+')
        {
            c += 1;
        }
        else if (a1[0] == '-'&&a1[1] == '-')
        {
            d+=1;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX