Advertisement
TAHMID37

omar_mamu

Oct 31st, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.54 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define pi acos(-1.0)
  4. #define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
  5. #define ll long long
  6. #define pb push_back
  7. #define fi first
  8. #define se second
  9. #define in insert
  10. #define mp make_pair
  11. #define GCD(a,b) __gcd(a,b);
  12. #define endl "\n"
  13. #define FRU freopen("out.txt","w",stdout)
  14. #define FRO freopen("in.txt","r",stdin)
  15. #define INFLL 9223372036854775807
  16. #define debug 0
  17. #define MAXN   100001
  18. #define ar array
  19. #define lb lower_bound
  20. #define ub upper_bound
  21. const int mxN=2e5;
  22. const int MOD=1e9+7;
  23. template<typename ForwardIterator, typename T>
  24. ForwardIterator first_less_than (ForwardIterator first, ForwardIterator last, T value)
  25. {auto it = std::lower_bound (first, last, value);
  26. return (it == first ? last : --it);}
  27. bool sortbysec(const pair<int,int> &a,const pair<int,int> &b)
  28. {
  29.     return (a.second < b.second);
  30. }
  31. #define debugxx(v) {for(auto x:v){cout<<x.fi<<" "<<x.se<<endl;}cout<<endl;}
  32. #define debugx(v){for(auto y:v) {cout<<y<<" ";}cout<<endl;}
  33. //Don't hesitate to ask me if you don't understand my code.......Happy coding,Tahmid...;
  34. int main()
  35. {
  36.     fastio;
  37.     int i;
  38.     for(i=0;i<4;i++)
  39.     {
  40.         string s1,s2;
  41.         double num;
  42.         cin>>s1>>s2>>num;
  43.         if(num>=3.75&&num<=4.00)
  44.             cout<<"GOOD"<<endl;
  45.         else if(num>=3.5&&num<=3.74)
  46.             cout<<"SATISFACTORY"<<endl;
  47.         else if(num>=3.00&&num<=3.49)
  48.             cout<<"NEED TO IMPROVE"<<endl;
  49.         else
  50.             cout<<"POOR"<<endl;
  51.  
  52.     }
  53.  
  54. }
  55.  
  56.  
  57.  
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement