Advertisement
rjlth

Untitled

Dec 15th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. //Zhandos Kapezov
  2. #include <iostream>
  3. #include <math.h>
  4. #include <cmath>
  5. #include <vector>
  6. #include <utility>
  7. #include <algorithm>
  8. #include <cstdio>
  9. #include <cstdlib>
  10. #include <fstream>
  11. #include <string>
  12. #include <string.h>
  13. #include <sstream>
  14. #include <map>
  15. #include <set>
  16. #include <stack>
  17. #include <queue>
  18. #include <deque>
  19. #include <limits>
  20. #include <list>
  21. #include <functional>
  22. #include <bitset>
  23. #include <numeric>
  24. #include <iomanip>
  25. #include <ctime>
  26. #include <ctype.h>
  27.  
  28. using namespace std;
  29. typedef long long ll;
  30.  
  31. #define F first
  32. #define S second
  33. #define pb push_back
  34. #define mp make_pair
  35. #define sz size()
  36. #define sqr(x) ((x)*(x))
  37. #define INF numeric_limits<int>::max()
  38.  
  39. int main()
  40. {
  41. #ifndef ONLINE_JUDGE
  42. freopen("input.txt","rt",stdin);
  43. freopen("learning.in","wt",stdout);
  44. #endif
  45. int N, n, m, l, r;
  46. N=100;
  47. n=rand()%N+1;
  48. l=rand()%n+1;
  49. r=0;
  50. while(r<=l) r=rand()%n+1;
  51. m=rand()%n+1;
  52. cout<<m<<" "<<l<<" "<<r<<endl;
  53. for (int i=0; i<m; i++) {
  54. if (rand()%2) cout<<"NS "; else cout<<"S ";
  55. cout<<rand()%n+1<<"\n";
  56. }
  57. return 0;
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement