Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. const string F = "First";
  8. const string S = "Second";
  9.  
  10.  
  11. string solveG1a(int n, int m) {
  12. if (n == m) {
  13. return S;
  14. }
  15. return F;
  16. }
  17.  
  18. string solveG1b(int n) {
  19. if (n % 3 == 0) {
  20. return S;
  21. }
  22. return F;
  23. }
  24.  
  25. string solveG1c(int n) {
  26. if (n % 3 == 0) {
  27. return S;
  28. }
  29. return F;
  30. }
  31.  
  32. string solveG1d(int n) {
  33. if (n % 2 == 0) {
  34. return S;
  35. }
  36. return F;
  37. }
  38.  
  39. string solveG1e(int n) {
  40. if (n % 8 < 2) {
  41. return S;
  42. }
  43. return F;
  44. }
  45.  
  46. string solveG1f(int n, int m) {
  47. if (n == m) {
  48. return S;
  49. }
  50. return F;
  51. }
  52.  
  53. string solveG1g(int n) {
  54. if (n % 3 == 0) {
  55. return S;
  56. }
  57. return F;
  58. }
  59.  
  60. //
  61. string solveG1h (int n) {
  62. if (n % 3 == 0) {
  63. return S;
  64. }
  65. return F;
  66. }
  67.  
  68. int main() {
  69.  
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement