MSBOP 2015 Round2B register

Ended

Participants:6187

Verdict:AC | TLE
Submitted:2015-04-26 14:26:46

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 <string.h>
#include <algorithm>
#include <iostream>
#include <stdio.h>
using namespace std;
int n;
struct note
{
    int x,y;
    bool operator < (const note &other)const
    {
        return y<other.y;
    }
}a[56];
int main()
{
     int T,tt=0;
     scanf("%d",&T);
     while(T--)
     {
         scanf("%d",&n);
         for(int i=0;i<n;i++)
         {
             char s[10];
             scanf("%s",s);
             if(s[0]>='2'&&s[0]<='9')
             {
                 a[i].x=s[0]-'0';
             }
             a[i].y=i;
             if(s[0]=='T')
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX