fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. // #include <climits>
  4. // #include <cmath>
  5. // #include <map>
  6. // #include <algorithm>
  7. // #include <vector>
  8. // #include <typeinfo>
  9. // #include <set>
  10. // #include <bits/stdc++.h>
  11. // #include <list>
  12. // #include <string>
  13. // #include <cstring>
  14. // #include <limits>
  15. // #define _CRT_SECURE_NO_WARNINGS
  16. // #include <stdio.h>
  17.  
  18.  
  19.  
  20. using namespace std;
  21.  
  22.  
  23. int main() {
  24. string str;
  25.  
  26. cin >> str;
  27.  
  28. if((int)str[0] != 78 && (int)str[0] != 110) {
  29. cout << "No" << endl;
  30. // cout << (int)str[0] << endl;
  31. return 0;
  32. }
  33.  
  34. if((int)str[1] != 85 && (int)str[1] != 117) {
  35. cout << "No" << endl;
  36. // cout << 2 << endl;
  37. return 0;
  38. }
  39.  
  40. if((int)str[2] != 67 && (int)str[2] != 99) {
  41. cout << "No" << endl;
  42. // cout << 3 << endl;
  43. return 0;
  44. }
  45.  
  46. if((int)str[3] != 80 && (int)str[3] != 112) {
  47. cout << "No" << endl;
  48. // cout << 4 << endl;
  49. return 0;
  50. }
  51.  
  52. if((int)str[4] != 65 && (int)str[4] != 97) {
  53. cout << "No" << endl;
  54. // cout << 5 << endl;
  55. return 0;
  56. }
  57. cout << "Yes" << endl;
  58.  
  59. // for (size_t i = 0; i < str.size(); i++)
  60. // {
  61. // cout << (int)str[i] << endl;
  62. // }
  63.  
  64.  
  65. }
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
No