2 条题解

  • 0
    @ 2025-10-24 18:38:08

    按题意直接模拟即可。

    AC code:

    #include <bits/stdc++.h>
    using namespace std;
    int main() {
        int a;
        cin >> a;
        cout << a - 1949 << endl;
        return 0;
    }
    
    • 0
      @ 2025-9-5 22:32:14

      本题直接输出 y−1949y - 1949 即可。

      // P123. [KSC003A] Happy China's National Day!
      // code by:cirrationaler
      // time:2025/08/28
      #include <bits/stdc++.h>
      
      using namespace std;
      
      int y;
      
      int main()
      {
          // freopen("code.in", "r", stdin);
          scanf("%d", &y);
          printf("%d", y - 1949);
          return 0;
      }
      
      
      • 1

      信息

      ID
      123
      时间
      1000ms
      内存
      256MiB
      难度
      1
      标签
      递交数
      8
      已通过
      5
      上传者