| Task: | Conspiracies everywhere |
| Sender: | ht |
| Submission time: | 2024-11-16 13:37:02 +0200 |
| Language: | C++ (C++17) |
| Status: | READY |
| Result: | WRONG ANSWER |
| test | verdict | time | |
|---|---|---|---|
| #1 | ACCEPTED | 0.00 s | details |
| #2 | ACCEPTED | 0.00 s | details |
| #3 | ACCEPTED | 0.00 s | details |
| #4 | ACCEPTED | 0.00 s | details |
| #5 | WRONG ANSWER | 0.00 s | details |
| #6 | WRONG ANSWER | 0.00 s | details |
| #7 | WRONG ANSWER | 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 | WRONG ANSWER | 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 | WRONG ANSWER | 0.00 s | details |
| #16 | WRONG ANSWER | 0.00 s | details |
Code
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define all(x) x.begin(), x.end()
#define rep(i,a,b) for(int i=a; i<=b; i++)
template<typename T> ostream& operator<<(ostream& os, const vector<T> v){ for(const auto& x : v){ os << x << " ";} return os; }
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>> y){
for(const auto& v : y){
for(const auto& x : v) {os << x << " ";} cout << "\n";} return os;
}
int main(){
ios::sync_with_stdio(0);
ll n, q;
cin >> n >> q;
if(n > q){
cout << "The truth is out there\n";
return 0;
}
if(n == 1){
cout << q << "\n";
return 0;
}
cout << (q - n);
for(int i=0; i<n-1; i++){
cout << " 1";
}
cout << "\n";
}
Test details
Test 1
Verdict: ACCEPTED
| input |
|---|
| 3 8 |
| correct output |
|---|
| 5 1 1 |
| user output |
|---|
| 5 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: ACCEPTED
| input |
|---|
| 1 1000000000000000000 |
| correct output |
|---|
| 1000000000000000000 |
| user output |
|---|
| 1000000000000000000 |
Test 4
Verdict: ACCEPTED
| input |
|---|
| 1 1 |
| correct output |
|---|
| 1 |
| user output |
|---|
| 1 |
Test 5
Verdict: WRONG ANSWER
| input |
|---|
| 60 1000000000000000000 |
| correct output |
|---|
| 423539247696576513 1 1 1 1 1 1... |
| user output |
|---|
| 999999999999999940 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 |
|---|
| 502 1 1 1 1 1 1 1 1 1 |
Test 7
Verdict: WRONG ANSWER
| input |
|---|
| 60 500000000000000000 |
| correct output |
|---|
| The truth is out there |
| user output |
|---|
| 499999999999999940 1 1 1 1 1 1... |
Test 8
Verdict: WRONG ANSWER
| input |
|---|
| 5 1000000000 |
| correct output |
|---|
| 999999985 1 1 1 1 |
| user output |
|---|
| 999999995 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 |
|---|
| 999999981 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 |
|---|
| 999999999999999941 1 1 1 1 1 1... |
Test 11
Verdict: WRONG ANSWER
| input |
|---|
| 42 133713371337 |
| correct output |
|---|
| The truth is out there |
| user output |
|---|
| 133713371295 1 1 1 1 1 1 1 1 1... |
Test 12
Verdict: WRONG ANSWER
| input |
|---|
| 42 1337133713371337 |
| correct output |
|---|
| 1334934690115786 1 1 1 1 1 1 1... |
| user output |
|---|
| 1337133713371295 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: WRONG ANSWER
| input |
|---|
| 10 511 |
| correct output |
|---|
| The truth is out there |
| user output |
|---|
| 501 1 1 1 1 1 1 1 1 1 |
Test 16
Verdict: WRONG ANSWER
| input |
|---|
| 10 513 |
| correct output |
|---|
| 2 1 1 1 1 1 1 1 1 1 |
| user output |
|---|
| 503 1 1 1 1 1 1 1 1 1 |
