Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
codeforce - construct the string
jakaria_hossain
Apr 13th, 2020
52
Never
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.52 KB
raw
download
clone
embed
print
report
RAW Paste Data
#include<bits/stdc++.h> using namespace std; #define ll long long #define fast()(ios_base::sync_with_stdio(0),cin.tie(NULL)) int main() { fast(); ll t; cin>>t; while(t--) { ll n,a,b,sz=0; string s; sz=s.size(); cin>>n>>a>>b; while(sz<n) { for(ll i=0;i<b;i++) { s.push_back('a'+i); sz=s.size(); if(sz==n)break; } } cout<<s<<endl; } }
Public Pastes
Bateaux media scre...
CSS | 2 min ago
# load_3D_models.p...
Python | 6 min ago
Untitled
Apache Log | 12 min ago
Multi Cipher
C++ | 16 min ago
Lab_2(Sem_2)
Java | 16 min ago
Graphs: first part
C# | 18 min ago
Calc
C | 27 min ago
Python ДЗ-2 Вариан...
Python | 38 min ago
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!