3 条题解

  • 0
    @ 2023-10-10 23:11:21

    #include <stdio.h>

    int main() { int luck, encourage; scanf("%d %d", &luck, &encourage);

    if (luck >= 10 || encourage >= 20) {
        printf("1\n");
    } else {
        printf("0\n");
    }
    
    return 0;
    

    }

    • 0
      @ 2023-9-8 17:41:49
      #include<stdio.h>
      int main()
      {
          int n=0,a,b;
          scanf("%d%d",&a,&b);
          if(a>=10||b>=20)
          {
              n++;
          }
          printf ("%d",n);
          return 0;
      }
      
      • 0
        @ 2023-8-15 17:24:53

        #include<bits/stdc++.h> using namespace std; int main() { int a, b; while(cin >> a >> b) if(a>=10 || b>=20) cout << "1" << endl; else cout << "0" << endl; return 0; }

        • 1

        信息

        ID
        57
        时间
        1000ms
        内存
        256MiB
        难度
        1
        标签
        (无)
        递交数
        941
        已通过
        670
        上传者