2 条题解

  • 0
    @ 2025-1-4 11:20:03

    神奇解法。

    #include<bits/stdc++.h>
    #define int long long
    #define INF 0x3f3f3f
    using namespace std;
    int x,y,z;
    signed main(){
    	cin>>x>>y>>z;
    	if(x+y<=z)cout<<"N";
    	else cout<<"Y";
    	return 0;
    }
    
    • 0
      @ 2024-12-22 11:03:57

      Python :

      # coding=utf-8
      x,y,z=map(float,input().split())
      min=(x-y)**2
      min=min**0.5/2
      max=(x+y)/2
      if(min<z and z<max):
          print('Y')
      else:
          print('N')
      
      
      • 1

      信息

      ID
      84
      时间
      1000ms
      内存
      128MiB
      难度
      9
      标签
      (无)
      递交数
      8
      已通过
      7
      上传者