【 OJ 】 HDOJ1037 18年11月17日18:15 [ 34 ]

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/QingCoffe/article/details/84191246

ummm...吃完饭,看这题....好多英文还不认识,噼里啪啦讲一堆....然后发现无力吐槽,太水

AC代码:

#include<iostream>
using namespace std;
//这题也太水了...
int set[3];
int main(void) {
	int wh = 168;
	bool isok;
	int index;
	isok = true;
	index;
	for (int i = 0; i < 3; ++i) {
		cin >> set[i];
		if (set[i] <= wh) {
			isok = false;
			index = i;
			break;
		}
	}
	if (isok) {
		cout << "NO CRASH" << endl;
	}
	else {
		cout << "CRASH " << set[index] << endl;
	}
	system("pause");
	return 0;
}

猜你喜欢

转载自blog.csdn.net/QingCoffe/article/details/84191246