A Christmas Eve Eve Eve

Solved.

 1     #include <bits/stdc++.h>
 2     using namespace std;
 3      
 4     int main()
 5     {
 6         int n;
 7      
 8         while (scanf("%d", &n) != EOF)
 9         {
10             printf("Christmas"); 
11             int need = 3 - (n - 22);
12             for (int i = need; i; --i) printf(" Eve");
13             puts("");
14         }
15         return 0;
16     }
View Code

相关文章:

  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
猜你喜欢
  • 2021-08-28
  • 2021-09-02
  • 2021-11-08
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案