Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
big boom!
#include <iostream> using namespace std; int ilosc,x; char i='I'; char o='O'; char w='!'; int main() { cin>>ilosc; for(int j=0;j<ilosc;j++) { cin>>x; cout<<"B"; for(int a=0;a<x;a++) { cout<<i; } cout<<"G B"; for(int a=0;a<x;a++) { cout<<o; } cout<<"M"; for(int a=0;a<x;a++) { cout<<w; } cout<<endl; } }
run
|
edit
|
history
|
help
0
0-1 Knapsack
alternate list
DP on Trees: Type B (In/out Dp)
q
Vectors as Inputs to Map
binder
Split in C++ (Simple)
Bitset Operators
replace digits
input