Submission details
Task:Alien Invasion II
Sender:TuomoPera
Submission time:2020-09-19 13:07:17 +0300
Language:C++ (C++11)
Status:READY
Result:
Test results
testverdicttime
#10.01 sdetails
#20.01 sdetails
#30.01 sdetails

Code

#include <iostream>
#include <algorithm> 
#include <vector>
#include <string>

using namespace std;
int main() {
	//freopen("cases.txt", "r", stdin);

	string a;
	long long b;
	cin >> a;
	
	a.append("2");

	cout << a << endl;
	
	b = stoi(a) / 2;

	cout << "2 " << b << endl;

	return 0;
}

Test details

Test 1

Verdict:

input
2368469234876449

correct output
22368469234876449
3 7456156411625483

user output
23684692348764492

Error:
terminate called after throwing an instance of 'std::out_of_range'
  what():  stoi

Test 2

Verdict:

input
292929292929292929292929292931

correct output
129292929292929292929292929293...

user output
292929292929292929292929292931...

Error:
terminate called after throwing an instance of 'std::out_of_range'
  what():  stoi

Test 3

Verdict:

input
292929292929292929292929292979

correct output
129292929292929292929292929297...

user output
292929292929292929292929292979...

Error:
terminate called after throwing an instance of 'std::out_of_range'
  what():  stoi