//2186Keep on Truckin'
#include <iostream>
#include <stdio.h>
#define FILE_DEBUG
#ifdef FILE_DEBUG
#include <fstream>
#endif
using namespace std;
int main(int argc, char *argv[])
{
#ifdef FILE_DEBUG
ifstream fin;
fin.open("input.txt");
cin.rdbuf(fin.rdbuf()); // assign file's streambuf to cin
#ifdef _C_LAN_
freopen("input.txt", "r", stdin);
#endif
#endif
#ifdef FILE_DEBUG
ofstream fout;
fout.open("output.txt");
cout.rdbuf(fout.rdbuf()); // assign file's streambuf to cout
#ifdef _C_LAN_
freopen("output.txt", "w", stdout);
#endif
#endif
int height;
bool if_crash = false;
while (cin >> height)
{
if (height <= 168)
{
cout << "CRASH " << height << endl;
if_crash = true;
break;
}
}
if (if_crash == false)
{
cout << "NO CRASH" << endl;
}
return 0;
}
ZOJ 2186 Keep on Truckin'
最新推荐文章于 2019-05-02 23:24:00 发布