我的第一篇学术类blog——判断三角形

题目描述:

 

 

思路:先排序,再进行各种判断,最主要的一点,输出yse!

详细如下://我也没有验证过对不对

#include<iostream>

using namespace std;

int main()
{
    int a,b,c,t;
    cin>>a>>b>>c;
    if(a==0||b==0||c==0) {cout<<"no"<<endl<<"no"<<endl<<"no";return 0;}//判断是否有零出现(这里需要注意是||而不是&&,虽然数据很水&&也能过
    if(a>b) {t=a;a=b;b=t;}
    if(b>c) {t=b;b=c;c=t;}
    if(a>c) {t=a;a=c;c=t;}
    //排序 
    if(a+b>c&&c-b<a)//判断是否为三角形 
    {
        if(a==b&&b==c) cout<<"yse"<<endl;else cout<<"no"<<endl;//判断是否为等边三角形
        if(a==b||b==c||a==c/*其实这个可以不要,不过保险起见和出于懒得方面我还是加着吧*/)             
            cout<<"yse"<<endl; else cout<<"no"<<endl;//判断是否为等边三角形
        cout<<"yse";//这一步可以并在上一步一起写 
        return 0;//这里一定得跳出循环,不然最后会多三个no(按照我的思路是这样) 
    }
    cout<<"no"<<endl<<"no"<<endl<<"no";
    return 0;
}

 

 

Microsoft 为 Mac 提供了测试版远程客户端,您可转到 Microsoft Remote Desktop for Mac 进行下载。该测试版本客户端由微软官方维护,我们推荐您优先使用该版本客户端(微软已于 2017 年取消其官网提供的下载链接,转而通过其子公司 HockeyApp 的页面进行 Beta 版本的发布)。 地址:https://rink.hockeyapp.net/apps/5e0c144289a51fca2d3bfa39ce7f2b06/ Version 10.2.2 (1285) 更新于05 OCT 2018, 14:35 What's new in this update: Thanks for all the feedback! We have some exciting features and fixes in this release. A brand new Connection Center that supports drag and drop, manual arrangement of items, resizable columns in list view, column-based sorting, and easier group management. Settings import from the version 8 client has been improved (App Store client only). RDP files pointing to RemoteApp endpoints can now be imported into the Connection Center. The Connection Center now remembers the last active pivot (Desktops or Feeds) when closing the app. Retina display optimizations for Remote Desktop scenarios. Support for specifying the graphics interpolation level when not using Retina optimizations. 256-color support to enable connectivity to Windows 2000. Fixed clipping of the right and bottom edges of the screen when connecting to Windows 7/Windows Server 2008 R2 and earlier. Copying a local file into Outlook (running in a remote session) now adds the file as an attachment. Fixed an issue that was slowing down pasteboard-based file transfers if the files originated from a local network share. Addressed a bug that was causing to Excel (running in a remote session) to hang when saving data to a file on a redirected folder. Fixed an issue that was causing no free space to be reported for redirected folders. Added support for enforcing Remote Desktop Gateway device redirection policies. Remote Desktop Gateway feedback is now part of the connecting status UI. Fixed an issue that prevented session windows from closing when disconnecting. If NLA is not enforced by the server, you will now be routed to the login screen if your password has expired. The credential prompting UI and flows have been overhauled. Fixed performance issues that surfaced when lots of data was being transferred over the network. Smart card redirection fixes. Support for all possible values of the "EnableCredSspSupport" and "Authentication Level" RDP file settings if the ClientSettings.EnforceCredSSPSupport user default is set to 0. Support for the "Prompt for Credentials on Client" RDP file setting when NLA is not negotiated. Support for smart card-based login via smart card redirection at the Winlogon prompt when NLA is not negotiated. Fixed a bug that caused thumbnails to consume too much disk storage on macOS 10.14. Please keep the feedback coming. We listen to it all. If you encounter any errors, you can always contact us via Help > Report an Issue. If this does not work, you can mail us at rdios@microsoft.com. Get the app in the store Go to https://aka.ms/rdmac. If you would like to test drive new features and fixes continue using the app from this channel.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值