2 solutions

  • 1
    @ 2026-1-11 17:42:31
    #include<stdio.h>
    int main()
    {
        int x,y;
        scanf("%d %d",&x,&y);
        if(x>=-1&&x<=1&&y>=-1&&y<=1)
        printf("yes");
        else
        printf("no");
        return 0;
    }
    
    • 0
      @ 2024-7-28 17:40:58
      #include<iostream>
      using namespace std;
      int main()
      {
          int x,y;
          cin>>x>>y;
          if((x >= -1 && x <= 1) && (y >= -1 && y <= 1)){
              cout<<"yes"<<endl;
          }else cout<<"no"<<endl;
          return 0;
      }
      
      • 1

      Information

      ID
      6734
      Time
      1000ms
      Memory
      128MiB
      Difficulty
      3
      Tags
      (None)
      # Submissions
      177
      Accepted
      94
      Uploaded By