Task: | Conspiracies everywhere |
Sender: | CPLX |
Submission time: | 2024-11-16 12:56:02 +0200 |
Language: | C++ (C++17) |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.00 s | details |
#2 | ACCEPTED | 0.00 s | details |
#3 | WRONG ANSWER | 0.00 s | details |
#4 | WRONG ANSWER | 0.00 s | details |
#5 | WRONG ANSWER | 0.00 s | details |
#6 | WRONG ANSWER | 0.00 s | details |
#7 | ACCEPTED | 0.00 s | details |
#8 | WRONG ANSWER | 0.00 s | details |
#9 | WRONG ANSWER | 0.00 s | details |
#10 | WRONG ANSWER | 0.00 s | details |
#11 | ACCEPTED | 0.00 s | details |
#12 | WRONG ANSWER | 0.00 s | details |
#13 | WRONG ANSWER | 0.00 s | details |
#14 | WRONG ANSWER | 0.00 s | details |
#15 | ACCEPTED | 0.00 s | details |
#16 | WRONG ANSWER | 0.00 s | details |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:22:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 22 | for(int l=0; l<sol[i].size(); l++) sol[i][l] = 2* sol[i+1][0]; | ~^~~~~~~~~~~~~~ input/code.cpp:31:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 31 | for(int i=1; i<sol[sol.size()-1].size(); i++){ | ~^~~~~~~~~~~~~~~~~~~~~~~~~ input/code.cpp:33:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 33 | if(i!=sol[sol.size()-1].size()-1) cout <<" "; | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Code
#include <bits/stdc++.h>#include <limits>using namespace std;typedef long long ll;int main() {ll a,b;cin >> a >> b;vector<vector<ll>> sol;for(int i=1; i<=a; i++){vector<ll> temp(i,1);sol.push_back(temp);}for(int i=sol.size()-2; i>=0; i--){for(int l=0; l<sol[i].size(); l++) sol[i][l] = 2* sol[i+1][0];}if(sol[0][0]>b){cout <<"The truth is out there"<<endl;return 0;}cout << b-sol[0][0];if(0!=sol[sol.size()-1].size()-1)cout << " ";for(int i=1; i<sol[sol.size()-1].size(); i++){cout << sol[sol.size()-1][i];if(i!=sol[sol.size()-1].size()-1) cout <<" ";}cout << endl;}
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
3 8 |
correct output |
---|
5 1 1 |
user output |
---|
4 1 1 |
Test 2
Verdict: ACCEPTED
input |
---|
2 1 |
correct output |
---|
The truth is out there |
user output |
---|
The truth is out there |
Test 3
Verdict: WRONG ANSWER
input |
---|
1 1000000000000000000 |
correct output |
---|
1000000000000000000 |
user output |
---|
999999999999999999 |
Test 4
Verdict: WRONG ANSWER
input |
---|
1 1 |
correct output |
---|
1 |
user output |
---|
0 |
Test 5
Verdict: WRONG ANSWER
input |
---|
60 1000000000000000000 |
correct output |
---|
423539247696576513 1 1 1 1 1 1... |
user output |
---|
423539247696576512 1 1 1 1 1 1... |
Test 6
Verdict: WRONG ANSWER
input |
---|
10 512 |
correct output |
---|
1 1 1 1 1 1 1 1 1 1 |
user output |
---|
0 1 1 1 1 1 1 1 1 1 |
Test 7
Verdict: ACCEPTED
input |
---|
60 500000000000000000 |
correct output |
---|
The truth is out there |
user output |
---|
The truth is out there |
Test 8
Verdict: WRONG ANSWER
input |
---|
5 1000000000 |
correct output |
---|
999999985 1 1 1 1 |
user output |
---|
999999984 1 1 1 1 |
Test 9
Verdict: WRONG ANSWER
input |
---|
19 1000000000 |
correct output |
---|
999737857 1 1 1 1 1 1 1 1 1 1 ... |
user output |
---|
999737856 1 1 1 1 1 1 1 1 1 1 ... |
Test 10
Verdict: WRONG ANSWER
input |
---|
59 1000000000000000000 |
correct output |
---|
711769623848288257 1 1 1 1 1 1... |
user output |
---|
711769623848288256 1 1 1 1 1 1... |
Test 11
Verdict: ACCEPTED
input |
---|
42 133713371337 |
correct output |
---|
The truth is out there |
user output |
---|
The truth is out there |
Test 12
Verdict: WRONG ANSWER
input |
---|
42 1337133713371337 |
correct output |
---|
1334934690115786 1 1 1 1 1 1 1... |
user output |
---|
1334934690115785 1 1 1 1 1 1 1... |
Test 13
Verdict: WRONG ANSWER
input |
---|
2 2 |
correct output |
---|
1 1 |
user output |
---|
0 1 |
Test 14
Verdict: WRONG ANSWER
input |
---|
2 1000000000000000000 |
correct output |
---|
999999999999999999 1 |
user output |
---|
999999999999999998 1 |
Test 15
Verdict: ACCEPTED
input |
---|
10 511 |
correct output |
---|
The truth is out there |
user output |
---|
The truth is out there |
Test 16
Verdict: WRONG ANSWER
input |
---|
10 513 |
correct output |
---|
2 1 1 1 1 1 1 1 1 1 |
user output |
---|
1 1 1 1 1 1 1 1 1 1 |