Task: | Alien Invasion II |
Sender: | TuomoPera |
Submission time: | 2020-09-19 13:07:04 +0300 |
Language: | C++ (C++11) |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.01 s | details |
#2 | WRONG ANSWER | 0.01 s | details |
#3 | WRONG ANSWER | 0.01 s | details |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:8:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("cases.txt", "r", stdin); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
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: WRONG ANSWER
input |
---|
2368469234876449 |
correct output |
---|
22368469234876449 3 7456156411625483 |
user output |
---|
2 2 1 |
Test 2
Verdict: WRONG ANSWER
input |
---|
292929292929292929292929292931 |
correct output |
---|
129292929292929292929292929293... |
user output |
---|
2 2 1 |
Test 3
Verdict: WRONG ANSWER
input |
---|
292929292929292929292929292979 |
correct output |
---|
129292929292929292929292929297... |
user output |
---|
2 2 1 |