AOJ ITP1_2_B - Range
題意:
如果a<b<c就輸出”Yes”,否則”No”。
思路:
比較abc大小。
程式碼:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ | |
int a, b, c; | |
while(cin >> a >> b >> c) | |
{ | |
if( a < b && b < c) | |
{ | |
cout << "Yes" << endl; | |
} | |
else | |
{ | |
cout << "No" << endl; | |
} | |
} | |
return 0; | |
} |