QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505599#3434. Restaurant Ordersxiaowuc1AC ✓101ms46912kbJava82.5kb2024-08-05 06:21:222024-08-05 06:21:22

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 47ms
memory: 38844kb

input:

1
1
1
10000

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok single line: '1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1'

Test #2:

score: 0
Accepted
time: 54ms
memory: 38752kb

input:

3
963 966 948
1000
9660 9657 9654 9651 9648 9645 9627 9612 9609 9597 9594 9591 9582 9579 9576 9573 9567 9564 9561 9558 9555 9552 9549 9546 9543 9540 9534 9531 9528 9525 9516 9513 9510 9498 9495 9480 8694 8691 8688 8685 8682 8679 8664 8661 8649 8646 8643 8634 8631 8628 8625 8619 8616 8613 8610 8607 8...

output:

2 2 2 2 2 2 2 2 2 2
1 2 2 2 2 2 2 2 2 2
1 1 2 2 2 2 2 2 2 2
1 1 1 2 2 2 2 2 2 2
1 1 1 1 2 2 2 2 2 2
1 1 1 1 1 2 2 2 2 2
1 1 1 1 1 2 2 2 2 3
1 1 1 1 2 2 2 2 3 3
1 1 1 1 1 2 2 2 3 3
1 1 1 2 2 2 2 3 3 3
1 1 1 1 2 2 2 3 3 3
1 1 1 1 1 2 2 3 3 3
1 1 2 2 2 2 3 3 3 3
1 1 1 2 2 2 3 3 3 3
1 1 1 1 2 2 3 3 3 3
...

result:

ok 1000 lines

Test #3:

score: 0
Accepted
time: 54ms
memory: 40028kb

input:

10
972 983 930 905 930 973 964 971 963 964
1000
9955 9830 9820 9819 9818 9809 9807 9806 9795 9794 9783 9272 9263 9248 9240 9206 9196 9195 9194 9185 9182 9174 9128 9118 9117 9116 9108 9050 8847 8837 8836 8835 8826 8824 8823 8812 8811 8800 8367 8358 8343 8335 8301 8291 8290 8289 8280 8277 8269 8223 82...

output:

4 4 4 4 4 4 4 4 4 4 4
2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 6
1 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 8
1 2 2 2 2 2 2 2 2 6
1 2 2 2 2 2 2 2 2 8
2 2 2 2 2 2 2 2 8 8
1 2 2 2 2 2 2 2 8 8
2 2 2 2 2 2 2 8 8 8
1 2 2 2 2 2 2 8 8 8
2 2 4 4 4 4 4 4 4 8
1 2 4 4 4 4 4 4 4 6
4 4 4 4 4 4 4 8 8 8
4 4 4 4 4 4 4 8 8 ...

result:

ok 1000 lines

Test #4:

score: 0
Accepted
time: 66ms
memory: 40192kb

input:

20
915 988 998 937 967 920 908 903 992 932 917 970 958 916 931 990 965 912 954 966
1000
9953 9949 9945 9051 9050 9045 9043 9042 9040 9039 9035 9030 8982 8976 8974 8972 8970 8968 8951 8949 8945 8148 8147 8142 8140 8139 8137 8136 8132 8127 7984 7978 7976 7974 7972 7970 7953 7951 7947 7245 7244 7239 72...

output:

7 7 7 7 8 8 8 8 8 8 8
3 3 3 3 3 3 3 3 3 5
1 8 8 8 8 8 8 8 8 8 8
1 8 8 8 8 8 8 8 8 18
7 7 7 7 8 8 8 8 8 8
7 7 7 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 14
1 8 8 8 8 8 8 8 8 8
7 7 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 18
7 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8
3 3 3 3 3 3 3 3 3
3 3 3 3 3 3 3 3 9
3 3 3 3 3 3 3 3 1...

result:

ok 1000 lines

Test #5:

score: 0
Accepted
time: 78ms
memory: 40736kb

input:

40
926 966 946 992 950 971 994 909 909 981 932 936 972 974 968 901 900 980 996 906 990 995 944 957 997 942 965 947 920 940 953 956 922 986 925 981 913 926 922 979
1000
9005 9004 9003 9002 9001 9000 8973 8972 8105 8104 8103 8102 8101 8100 7976 7975 7205 7204 7203 7202 7201 7200 6979 6978 6308 6305 63...

output:

16 16 16 16 16 17 17 17 17 17
16 16 16 16 17 17 17 17 17 17
16 16 16 17 17 17 17 17 17 17
16 16 17 17 17 17 17 17 17 17
16 17 17 17 17 17 17 17 17 17
17 17 17 17 17 17 17 17 17 17
25 25 25 25 25 25 25 25 25
19 25 25 25 25 25 25 25 25
16 16 16 16 16 17 17 17 17
16 16 16 16 17 17 17 17 17
16 16 16 17 ...

result:

ok 1000 lines

Test #6:

score: 0
Accepted
time: 91ms
memory: 39288kb

input:

100
965 955 920 992 936 946 961 969 967 986 987 990 945 935 928 987 936 934 919 920 944 985 963 982 999 928 912 982 936 993 952 906 913 968 998 979 944 943 977 922 999 958 930 986 905 938 956 975 926 981 994 909 937 993 983 986 978 926 911 935 939 901 923 934 992 919 956 935 981 914 944 944 925 924 ...

output:

62 62 62 89 89 89 89 89 89 89
62 62 89 89 89 89 89 89 89 89
62 89 89 89 89 89 89 89 89 89
89 89 89 89 89 89 89 89 89 89
62 62 62 89 89 89 89 89 89
62 62 89 89 89 89 89 89 89
62 89 89 89 89 89 89 89 89
89 89 89 89 89 89 89 89 89
62 62 62 89 89 89 89 89
62 62 89 89 89 89 89 89
62 89 89 89 89 89 89 89
...

result:

ok 1000 lines

Test #7:

score: 0
Accepted
time: 79ms
memory: 40000kb

input:

100
936 936 902 919 925 985 925 917 902 903 985 974 933 997 939 947 952 923 966 952 996 927 943 975 912 986 912 966 953 981 955 940 919 983 931 906 933 944 982 969 924 981 985 915 943 945 910 957 931 956 964 938 953 909 988 953 907 913 941 901 977 912 938 953 930 988 938 924 956 950 987 923 908 926 ...

output:

60 84 84 84 84 84 84 84 84 84
84 84 84 84 84 84 84 84 84 84
60 84 84 84 84 84 84 84 84
84 84 84 84 84 84 84 84 84
60 84 84 84 84 84 84 84
84 84 84 84 84 84 84 84
60 84 84 84 84 84 84
84 84 84 84 84 84 84
60 84 84 84 84 84
84 84 84 84 84 84
60 84 84 84 84
84 84 84 84 84
60 84 84 84
84 84 84 84
60 84 ...

result:

ok 1000 lines

Test #8:

score: 0
Accepted
time: 51ms
memory: 41176kb

input:

5
33 65 129 257 513
1000
1252 1219 1187 1186 1154 1153 1124 1122 1121 1120 1091 1089 1088 1087 1060 1059 1056 1055 1054 1027 1026 1023 1022 1021 997 990 989 988 964 957 956 955 932 924 923 922 899 891 890 889 868 858 857 856 835 825 824 823 803 792 791 790 770 759 758 757 740 726 725 724 707 693 692...

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2
1 1 1 1 1 1 1 1 1 1 ...

result:

ok 1000 lines

Test #9:

score: 0
Accepted
time: 61ms
memory: 39892kb

input:

10
999 998 996 992 984 968 936 872 744 488
1000
7489 7233 7105 7041 7025 7017 7009 7001 6993 6745 6617 6553 6537 6529 6521 6513 6493 6491 6490 6361 6297 6281 6273 6265 6257 6237 6235 6234 6169 6153 6145 6137 6129 6109 6107 6106 6089 6081 6073 6065 6045 6043 6042 6033 6029 6027 6026 6021 6019 6018 60...

output:

1 2 3 6 7 8 9 10 10
1 2 3 6 7 8 10 10 10
1 2 3 6 7 9 10 10 10
1 2 3 6 8 9 10 10 10
1 2 3 4 7 8 9 10
1 2 3 5 7 8 9 10
1 2 3 7 8 9 10 10 10
1 2 3 6 7 8 9 10
1 1 1 1 1 1 1
1 2 3 6 7 8 10 10
1 2 3 6 7 9 10 10
1 2 3 6 8 9 10 10
1 2 3 4 7 8 9
1 2 3 5 7 8 9
1 2 3 7 8 9 10 10
1 2 3 6 7 8 9
1 2 6 7 8 9 10 10...

result:

ok 1000 lines

Test #10:

score: 0
Accepted
time: 101ms
memory: 46912kb

input:

1
1
10
30000 30000 30000 30000 30000 30000 30000 30000 30000 30000

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 10 lines