Submission #1365051


Source Code Expand

#include <iomanip>
#include <vector>
#include <queue>
#include <algorithm>
#include <functional>
#include <math.h>
#include <stack>
#include <cctype>
using namespace std;
#define int long long
#define pi 2*acos(0.0)
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define REP(i,n) for (int i=0;i<(n);i++)

signed main()
{
	int n;
	cin >> n;
	int vv;
	if (n < 100) vv = 0;
	else if (n < 5000) vv = n/100;
	else if (n < 30000) vv = n / 1000 + 50;
	else if (n < 70000) vv = (n / 1000 - 30) / 5 + 80;
	else vv = 89;
	if (vv < 10) cout << "0" << vv << endl;
	else cout << vv << endl;
}

Submission Info

Submission Time
Task B - 視程の通報
User jijimasu
Language C++14 (GCC 5.4.1)
Score 0
Code Size 605 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:18:2: error: ‘cin’ was not declared in this scope
  cin >> n;
  ^
./Main.cpp:25:15: error: ‘cout’ was not declared in this scope
  if (vv < 10) cout << "0" << vv << endl;
               ^
./Main.cpp:26:7: error: ‘cout’ was not declared in this scope
  else cout << vv << endl;
       ^