4 条题解

  • 1
    @ 2025-5-25 8:48:26

    有点意思。

    可以用const常量来解

    #include<bits/stdc++.h>
    using namespace std;
    const int sz=10000; 
    int main()
    {
    	int x;
    	cin>>x;
    	cout<<sz-x;
    	return 0;
    } 
    
    • 0
      @ 2024-12-29 10:35:56
      #include<bits/stdc++.h>
      using namespace std;
      signed main(){
      	int n;
      	cin>>n;
      	cout<<10000-n;
      }
      
      • 0
        @ 2024-12-28 16:08:00

        有点简单了哈。直接输出 10000n10000-n 的值。

        #include<bits/stdc++.h>
        #define int long long
        #define INF 0x3f3f3f
        using namespace std;
        int n;
        signed main(){
        	cin>>n;
        	cout<<10000-n;
        	return 0;
        }
        
        • 0
          @ 2024-12-28 11:43:59

          water problem!!!

          #include<bits/stdc++.h>
          using namespace std;
          int main()
          {
          	int n;
          	cin>>n;
          	cout<<10000-n;
          	return 0;
          }
          
          • 1

          信息

          ID
          34
          时间
          1000ms
          内存
          128MiB
          难度
          2
          标签
          递交数
          28
          已通过
          23
          上传者