Submission details
Task:Ohjelmat
Sender:Kuha
Submission time:2025-10-18 13:03:32 +0300
Language:text (C++17)
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttimescore
#10.00 s0details

Code

#include <bits/stdc++.h>
 
using namespace std;
 
int main() {
    int t;
    cin>>t;
    while (t --> 0) {
        int x;
        cin>>x;
        if (x == 1) {
            cout<<"2"<<endl<<"DUP DROP"<<endl;
        } else {
            cout<<(x + x - 2)<<endl;
            for (int i = 1; i < x; i++) cout<<"DUP ";
            for (int i = 1; i < x; i++) cout<<"+ ";
            cout<<endl;
        }
    }
}

Test details

Test 1

Verdict:

input
100
156798
300372
911450
236249
...

correct output
21
20
23
22
24
...

user output
#include <bits/stdc++.h>
 
using namespace std;
 
int main() {
...