Submission #515516


Source Code Expand

#include <iostream>
#include <string>
using namespace std;

int main(){
	int l = 0;
	cin >> l;
	if(l < 100){
		l = 0;
	}else if(100 <= l && l <= 5000){
		l /= 100;
	}else if(6000 <= l && l <= 30000){
		l = l / 1000 + 50;
	}else if(35000 <= l && l <= 70000){
		l = (l / 1000 - 30) / 5 + 80;
	}else if(70000 < l){
		l = 89;
	}

	if(l < 10){
		string ans;
		ans = "0" + to_string(l);
		cout << ans << endl;
	}else{
		cout << l << endl;
	}
	return 0;
}

Submission Info

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

Compile Error

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