全部评论 8

  • 6

    2024-09-17 来自 广东

    1
  • 5

    2024-09-17 来自 广东

    1
  • 4

    2024-09-17 来自 广东

    1
  • 用用LaTeX吧

    2024-10-25 来自 广东

    0
  • #include<bits/stdc++.h>
    using namespace std;
    int main(){
    long long a,n,e,d,m,op,up,x,y;
    cin>>a;
    for(int i=1;i<=a;i++){
    cin>>n>>e>>d;
    m=n-ed+2;
    op=m
    m-4*n;
    if(op<0){
    cout<<"NO\n";
    continue;
    }
    else{
    int up=sqrt(op);
    if((m+up)%2==1){
    cout<<"NO\n";
    continue;
    }
    x=(m+up)/2;
    y=m-x;
    cout<<min(x,y)<<" "<<max(x,y)<<endl;
    }
    }

    return 0;
    

    }

    2024-10-19 来自 江苏

    0
  • 3

    2023-10-19 来自 吉林

    0
  • 2

    2023-10-19 来自 吉林

    0
  • 1

    2023-10-19 来自 吉林

    0
首页