diff --git a/11A Increasing Sequence/11A.cpp b/11A Increasing Sequence/11A.cpp new file mode 100644 index 0000000..ca6b314 --- /dev/null +++ b/11A Increasing Sequence/11A.cpp @@ -0,0 +1,58 @@ +#include +using namespace std; +using ll = long long; + +void solve() +{ + int n,d; + cin>>n>>d; + vectorv; + for(int i=0; i>x; + v.push_back(x); + } + int ct=0; + for(int i=1; i> TC; + //cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file diff --git a/1389A LCM Problem/1389A.cpp b/1389A LCM Problem/1389A.cpp new file mode 100644 index 0000000..16d6121 --- /dev/null +++ b/1389A LCM Problem/1389A.cpp @@ -0,0 +1,25 @@ +#include +using namespace std; +using ll = long long; + + +void solve() +{ + int l,r; + cin>>l>>r; + if(2*l>r) + cout<<-1<<" "<<-1<> TC; + cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file diff --git a/141A Amusing Joke/141A.cpp b/141A Amusing Joke/141A.cpp new file mode 100644 index 0000000..8549e0e --- /dev/null +++ b/141A Amusing Joke/141A.cpp @@ -0,0 +1,47 @@ +#include +using namespace std; +using ll = long long; + + +void solve() +{ + string a,b,c; + cin>>a>>b>>c; + mapletters; + for(int i=0; i> TC; + //cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file diff --git a/151A Soft Drinking/151A.cpp b/151A Soft Drinking/151A.cpp new file mode 100644 index 0000000..f9006b7 --- /dev/null +++ b/151A Soft Drinking/151A.cpp @@ -0,0 +1,52 @@ +#include +using namespace std; + +#define ll long long +#define ul unsigned long long +#define pb push_back +#define ss second +#define ff first +#define fr(m) for(int i=0; i=0; i--) +#define nl '\n' +#define yes cout<<"YES"<>n>>k>>l>>c>>d>>p>>nll>>np; + int drink=(k*l)/nll; + int slices=c*d; + int salt=p/np; + int toast=min({drink,slices,salt}); + cout<> TC; + while (TC--) solve(); +} + \ No newline at end of file