hihoCoder Challenge 14 register

Ended

Participants:709

Verdict:Accepted
Submitted:2015-08-30 19: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 <stdio.h>
#include <string.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <string>
#include <math.h>
#include <stdlib.h>
#include <time.h>
using namespace std;
struct Node {
    char op[10];
    int x;
    void input(){
        scanf("%s",op);
        scanf("%s",op);
        scanf("%d",&x);
        x = x*2;
    }
    bool check(int val) {
        if(strcmp(op,"<") == 0)
            return val < x;
        if(strcmp(op,"<=") == 0)
            return val <= x;
        if(strcmp(op,"=") == 0)
            return val == x;
        if(strcmp(op,">") == 0)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX