| Task: | Alien Invasion II |
| Sender: | TuomoPera |
| Submission time: | 2020-09-19 13:13:37 +0300 |
| Language: | C++ (C++11) |
| Status: | READY |
| Result: | WRONG ANSWER |
| test | verdict | time | |
|---|---|---|---|
| #1 | WRONG ANSWER | 0.01 s | details |
| #2 | RUNTIME ERROR | 0.01 s | details |
| #3 | RUNTIME ERROR | 0.01 s | details |
Code
#include <iostream>
#include <string>
using namespace std;
int main() {
//freopen("cases.txt", "r", stdin);
string a;
unsigned long long b;
cin >> a;
a.append("2");
cout << a << endl;
b = stoll(a) / 2;
cout << "2 " << b << endl;
return 0;
}Test details
Test 1
Verdict: WRONG ANSWER
| input |
|---|
| 2368469234876449 |
| correct output |
|---|
| 22368469234876449 3 7456156411625483 |
| user output |
|---|
| 23684692348764492 2 11842346174382246 |
Test 2
Verdict: RUNTIME ERROR
| input |
|---|
| 292929292929292929292929292931 |
| correct output |
|---|
| 129292929292929292929292929293... |
| user output |
|---|
| 292929292929292929292929292931... |
Error:
terminate called after throwing an instance of 'std::out_of_range' what(): stoll
Test 3
Verdict: RUNTIME ERROR
| input |
|---|
| 292929292929292929292929292979 |
| correct output |
|---|
| 129292929292929292929292929297... |
| user output |
|---|
| 292929292929292929292929292979... |
Error:
terminate called after throwing an instance of 'std::out_of_range' what(): stoll
