4 条题解

  • 2
    @ 2022-8-29 16:42:24
    #include<stdio.h>
    using namespace std;
    int main()
    {
    	int n,a=1,b=0;
    	scanf("%d",&n);
    	if(n>0) printf("%d",a);
    	else printf("%d",b);
    	return 0;
    }
    
    • 1
      @ 2026-1-26 15:04:42
      #include <iostream>
      using namespace std;
      int a,b;
      bool c;
      int main()
      {
          cin >> a;
          c = a;
          b = c;
          cout << b;
          return 0;
      }
      • 1
        @ 2023-8-7 20:15:17
        #include<bits/stdc++.h>
        #include<cstring>
        #include<queue>
        #include<set>
        #include<stack>
        #include<vector>
        #include<map>
        #define ll long long
        using namespace std;
        const int N=1e5+10;
        const int M=2023;
        const int inf=0x3f3f3f3f;
        int a;
        bool b;
        int main()
        {
        	cin>>a;
        	b=a;
        	a=b;
        	cout<<a;
        	return 0;
        }
        
        

        直接按照题目意思来

        • 0
          @ 2022-10-30 17:44:05
          #include<iostream>
          using namespace std;
          int main(){
          	cout<<1;
          }
          
          • 1

          信息

          ID
          840
          时间
          1000ms
          内存
          128MiB
          难度
          1
          标签
          递交数
          69
          已通过
          52
          上传者