CodeChef::Bowlers(Incorrect)

 

#include <bits/stdc++.h>
#define boost ios::sync_with_stdio(0);cin.tie(0)
using namespace std ;


int main (){
    boost ;
    long long int t ;
    cin >> t ;
    while (t--)
    {
        long long int n,k,l ;
        cin >> n >> k >> l ;
        long long int temp = k ;
        if(k * l < ncout << -1 << '\n';
        else
        {
            long long int arr[n];
            for (long long int i = 0i < ni++)
            {
                
                if(k == 0k = temp ;
                
                arr[i] = k ;
                 k -- ;
                     
            }
            for (long long int i = 0i < ni++)
            {
                cout << arr[i<< " " ;
            }
                cout << '\n' ;
            
            
        }
        
    }
    
    return 0 ;
}

Comments

Popular posts from this blog

CodeChef::CSUB

How Recursion Works?

CodeChef::TREE2