#include<iostream>
#include<cstdio> using namespace std; int f(int x){ } int j(int a,int b,int c) { int o=0; float e=b*b-4*a*c; if(e<0){ cout<<"NO"<<endl; return 0; } for(int i=0;i<=e;i++) if(i*i==e){ o=1; e=i;break; } float x1=(e-b)/(2*a)*1.0; float x2=(-e-b)/(2*a)*1.0; int x3=(-e-b)/(2*a); int x4=(e-b)/(2*a); if(x1<x2){ if(x2!=x3)f(x2); else cout<<x2<<endl; } } int main() { //freopen("uqe.in","r",stdin); //freopen("uqe.out","w",stdout); long long q,w; cin>>q>>w; in
题目 4016 [NOI 2024]分数
2024-09-28 17:40:29
|