Submission #133867


Source Code Expand

#include <iostream>

using namespace std;

int main(void)
{
	int metor;
	cin >> metor ;
	float kMettor = metor / 1000.0f;
	int VV;
	if( kMettor < 0.1)
		VV = 0;
	else if( kMettor <= 5.0)
		VV = kMettor * 10;
	else if( kMettor <= 30.0 )
		VV = kMettor + 50;
	else if( kMettor <= 70.0 )
		VV = (kMettor-30)/5 + 80;
	else
		VV = 89;

	printf("%02d\n",VV);

}

Submission Info

Submission Time
Task B - 視程の通報
User yoroyoro
Language C++ (G++ 4.6.4)
Score 0
Code Size 380 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:22:20: error: ‘printf’ was not declared in this scope