A - Beginning

签到.

 1 #include <bits/stdc++.h>
 2 using namespace std;
 3 
 4 int main()
 5 {
 6     int a[4];
 7     while (scanf("%d", a) != EOF)
 8     {
 9         for (int i = 1; i < 4; ++i) scanf("%d", a + i);
10         sort(a, a + 4);
11         int res = 0;
12         for (int i = 0; i < 4; ++i) res = res * 10 + a[i];
13         puts(res == 1479 ? "YES" : "NO");
14     }
15     return 0;
16 }
View Code

相关文章:

  • 2022-02-06
  • 2022-12-23
  • 2021-08-11
  • 2021-05-22
  • 2021-09-17
  • 2021-09-21
  • 2021-12-26
  • 2021-08-19
猜你喜欢
  • 2021-12-21
  • 2021-12-18
  • 2021-11-18
  • 2021-09-08
  • 2021-09-25
  • 2021-11-23
  • 2021-08-04
相关资源
相似解决方案