hiho week 186 register

Ended

Participants:166

Verdict:Accepted
Score:100 / 100
Submitted:2018-01-27 16:47:48

Lang:Java

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
import java.util.*;
public class Main {
    public static void main(String args[]) {
      Scanner in=new Scanner(System.in);
      int n,m;
      String str;
      String ST[]=new String[101];
      struct flag[]=new struct[101];
      n=in.nextInt();
      m=in.nextInt();
      in.nextLine();
      int cnt=0;
          str=in.nextLine();
          ST=str.split(" ");
          for(int i=0;i<ST.length;i++)
          {
          flag[cnt++]=new struct(0,0,true);
        //  System.out.println(ST[i]+" "+cnt);
          }
         
      
      int h=m;
      long r=0;
      boolean first=true;//first true
      boolean second=true;
      for(int i=0;i<n;i++)
      {
         for(int t=0;t<cnt;t++)
         {
             if(first)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX