1.4 编程基础之逻辑表达式与条件分支 16 三角形判断
生活随笔
收集整理的這篇文章主要介紹了
1.4 编程基础之逻辑表达式与条件分支 16 三角形判断
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
http://noi.openjudge.cn/ch0104/16/
/* 1.4編程基礎之邏輯表達式與條件分支 16 三角形判斷 http://noi.openjudge.cn/ch0104/16/ */ #include <bits/stdc++.h> using namespace std; int main() {int a,b,c;cin >> a >> b >> c;if( ( (a+b) >c ) && ( (a+c) > b ) ) {if ( (b+c) > a ){cout<<"yes"<<endl;} else{cout<<"no"<<endl;} }else{cout<<"no"<<endl;}return 0; }?
?
?
python3代碼
?https://blog.csdn.net/yigezzchengxuyuan/article/details/86651658
""" 1.4編程基礎之邏輯表達式與條件分支 16 三角形判斷 http://noi.openjudge.cn/ch0104/16/ https://blog.csdn.net/yigezzchengxuyuan/article/details/86651658""" x, y, z = map(int, input().split()) if x+y > z and x+z > y and y+z > x:print("yes") else:print("no")Python入門100道習題(好)
https://blog.csdn.net/yedouble/category_9278363.html
總結
以上是生活随笔為你收集整理的1.4 编程基础之逻辑表达式与条件分支 16 三角形判断的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Laravel配置自带组件实现各类型邮件
- 下一篇: 1.4编程基础之逻辑表达式与条件分支 0