-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/qq
Copy pathMore file actions
59 lines (56 loc) · 1.25 KB
/qq
Copy pathFile metadata and controls
59 lines (56 loc) · 1.25 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import java.util.Scanner;
public class test {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String str = scan.nextLine();
int[] arry = new int[10];
for(int i=0;i<str.length();i++){
int tempI = str.charAt(i)-48;
arry[tempI]+=1;
}
int x1=-1,x2=-1;
for(int i=0;i<arry.length;i++){
if(arry[i]==0 ){
if(x1==-1){
x1=i;
continue;
}
if(x2==-1){
x2=i;
break;
}
}
}
if(x1!=-1&& x2!=-1) {
if (x1 == 0) {
System.out.print(x2);
} else {
System.out.print(x1);
}
}
if(x1!=-1 && x2==-1){
if(x1==0){
System.out.print(10);
}else{
System.out.print(x1);
}
}
}
}
1
4
3 1 10:00:00-15:00:00
1 2 08:00:00-14:00:00 18:00:00-20:00:00
6 3 09:00:00-11:00:00 13:00:00-14:00:00 17:00:00-22:00:00
7 3 09:00:00-10:30:00 13:30:00-14:00:00 17:30:00-22:00:00
5
2 19:03:30
3 14:02:23
1 02:00:00
5 17:00:00
4 13:13:13
53790
0
21600
57600
157607