Submission #113795


Source Code Expand

#include <iostream>
#include <iomanip> 

using namespace std;

int mina()
{
	int n = 0;
	cin >> n;

	if(n < 100)
		n = 0;
	else if(n <= 5000)
		n /= 100; //n = n * / 1000 * 10
	else if(n <= 30000)
		n = (n / 1000) + 50;
	else if(n <= 70000)
		n = ((n / 1000) - 30) / 5 + 80;
	else 
		n = 89;

	cout << setw(2) << setfill('0') << n << endl;

	return 0;
}

Submission Info

Submission Time
Task A - 積雪深差
User edotoma
Language C++11 (GCC 4.8.1)
Score 0
Code Size 377 Byte
Status CE

Compile Error

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status