Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Zhandos Kapezov
- #include <iostream>
- #include <math.h>
- #include <cmath>
- #include <vector>
- #include <utility>
- #include <algorithm>
- #include <cstdio>
- #include <cstdlib>
- #include <fstream>
- #include <string>
- #include <string.h>
- #include <sstream>
- #include <map>
- #include <set>
- #include <stack>
- #include <queue>
- #include <deque>
- #include <limits>
- #include <list>
- #include <functional>
- #include <bitset>
- #include <numeric>
- #include <iomanip>
- #include <ctime>
- #include <ctype.h>
- using namespace std;
- typedef long long ll;
- #define F first
- #define S second
- #define pb push_back
- #define mp make_pair
- #define sz size()
- #define sqr(x) ((x)*(x))
- #define INF numeric_limits<int>::max()
- int main()
- {
- #ifndef ONLINE_JUDGE
- freopen("input.txt","rt",stdin);
- freopen("learning.in","wt",stdout);
- #endif
- int N, n, m, l, r;
- N=100;
- n=rand()%N+1;
- l=rand()%n+1;
- r=0;
- while(r<=l) r=rand()%n+1;
- m=rand()%n+1;
- cout<<m<<" "<<l<<" "<<r<<endl;
- for (int i=0; i<m; i++) {
- if (rand()%2) cout<<"NS "; else cout<<"S ";
- cout<<rand()%n+1<<"\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement