Submission details
Task:Poistot
Sender:OorigamiK
Submission time:2026-01-15 19:35:20 +0200
Language:C++ (C++20)
Status:READY
Result:0
Feedback
groupverdictscore
#10
#20
#30
Test results
testverdicttimegroup
#10.01 s1, 3details
#20.00 s1, 2, 3details
#30.00 s1, 3details
#40.01 s1, 3details
#50.06 s2, 3details
#60.07 s2, 3details
#70.27 s3details
#80.10 s3details
#9--3details
#10--3details

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:20:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |         for (int j=0;j<incList.size();j++){
      |                      ~^~~~~~~~~~~~~~~
input/code.cpp:32:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   32 |     for (int i=0;i<incList.size();i++){
      |                  ~^~~~~~~~~~~~~~~
input/code.cpp:33:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   33 |         for (int j=0;j<incList[i].size();j++){
      |                      ~^~~~~~~~~~~~~~~~~~

Code

#include <iostream>
#include <vector>
#include <string>

using namespace std;
int main(){
    int n;
    cin>>n;
    vector<int> numbers(n);
    for (int i=0;i<n;i++){
        int a;
        cin>>a;
        numbers[i]=a;
    }

    vector<vector<int>> incList;
    for (int i=0;i<n;i++){
        int num=numbers[i];
        bool added=false;
        for (int j=0;j<incList.size();j++){
            if (incList[j][incList[j].size()-1]<=num){
                incList[j].push_back(num);
                added=true;
                break;
            }
        }
        if (!added){
            incList.push_back({num});
        }
    }

    for (int i=0;i<incList.size();i++){
        for (int j=0;j<incList[i].size();j++){
            cout<<incList[i][j]<<" ";
        }
        cout<<"\n";
    }
}

Test details

Test 1

Group: 1, 3

Verdict:

input
1000
447773962 773442532 122816 137...

correct output
53
447773962 773442532 908719430 ...

user output
447773962 773442532 908719430 ...

Feedback: Output is shorter than expected

Test 2

Group: 1, 2, 3

Verdict:

input
1000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

correct output
1000




...

user output
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

Feedback: Output is shorter than expected

Test 3

Group: 1, 3

Verdict:

input
1000
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

correct output
1
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

Feedback: Output is shorter than expected

Test 4

Group: 1, 3

Verdict:

input
1000
1000 999 998 997 996 995 994 9...

correct output
1000
1000 
999 
998 
997 
...

user output
1000 
999 
998 
997 
996 
...

Feedback: Output is shorter than expected

Test 5

Group: 2, 3

Verdict:

input
200000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

correct output
200000




...

user output
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

Feedback: Output is shorter than expected

Test 6

Group: 2, 3

Verdict:

input
200000
5 2 1 10 6 10 5 5 5 4 4 2 3 7 ...

correct output
20776
5 10 
2 6 10 
1 5 7 9 10 
5 7 8 9 10 
...

user output
5 10 10 10 10 10 10 10 10 10 1...

Feedback: Output is shorter than expected

Test 7

Group: 3

Verdict:

input
200000
591414747 75940263 760367935 9...

correct output
879
591414747 760367935 901888417 ...

user output
591414747 760367935 901888417 ...

Feedback: Output is shorter than expected

Test 8

Group: 3

Verdict:

input
200000
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

correct output
1
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

Feedback: Output is shorter than expected

Test 9

Group: 3

Verdict:

input
200000
200000 199999 199998 199997 19...

correct output
200000
200000 
199999 
199998 
199997 
...

user output
(empty)

Test 10

Group: 3

Verdict:

input
200000
199999 199997 199995 199993 19...

correct output
100000
199999 200000 
199997 199998 
199995 199996 
199993 199994 
...

user output
(empty)