QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#785266 | #4958. Intercepting Information | WeaRD276# | AC ✓ | 0ms | 3704kb | C++20 | 992b | 2024-11-26 17:21:34 | 2024-11-26 17:21:34 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define pb push_back
#define x first
#define y second
#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define RFOR(i, a, b) for(int i = (a) - 1; i >= (b); i--)
typedef long long ll;
typedef double db;
typedef long double LD;
typedef pair<int, int> pii;
typedef pair<db, db> pdd;
typedef pair<ll, ll> pll;
int solve()
{
bool ok = 1;
FOR (i, 0, 8)
{
int x;
cin >> x;
ok &= x != 9;
}
cout << (ok ? "S\n" : "F\n");
return 0;
}
int32_t main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int TET = 1;
//cin >> TET;
for (int i = 1; i <= TET; i++)
{
if (solve())
{
break;
}
#ifdef ONPC
cerr << "_____________________________\n";
#endif
}
#ifdef ONPC
cerr << "\nfinished in " << clock() * 1.0 / CLOCKS_PER_SEC << " sec\n";
#endif
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3620kb
input:
0 0 1 1 0 1 0 1
output:
S
result:
ok single line: 'S'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
0 0 1 9 0 1 0 1
output:
F
result:
ok single line: 'F'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
9 0 9 9 0 9 9 9
output:
F
result:
ok single line: 'F'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
0 1 1 0 0 1 1 1
output:
S
result:
ok single line: 'S'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
0 9 0 1 0 9 9 9
output:
F
result:
ok single line: 'F'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
1 0 1 0 1 1 0 0
output:
S
result:
ok single line: 'S'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
0 0 0 0 1 1 1 0
output:
S
result:
ok single line: 'S'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
0 0 9 9 1 0 0 9
output:
F
result:
ok single line: 'F'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
1 0 1 1 1 0 1 0
output:
S
result:
ok single line: 'S'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
1 0 1 1 0 1 1 1
output:
S
result:
ok single line: 'S'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
1 1 0 1 1 0 0 0
output:
S
result:
ok single line: 'S'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
1 1 1 0 1 0 0 0
output:
S
result:
ok single line: 'S'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
0 0 0 1 0 0 1 1
output:
S
result:
ok single line: 'S'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
0 0 0 0 1 1 9 0
output:
F
result:
ok single line: 'F'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
0 0 1 1 1 0 1 1
output:
S
result:
ok single line: 'S'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
1 1 0 0 9 9 1 0
output:
F
result:
ok single line: 'F'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
1 1 1 1 0 1 1 1
output:
S
result:
ok single line: 'S'
Test #19:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
1 0 0 1 1 0 0 1
output:
S
result:
ok single line: 'S'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
9 9 0 9 9 9 1 9
output:
F
result:
ok single line: 'F'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
1 1 0 9 9 9 9 0
output:
F
result:
ok single line: 'F'
Test #22:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
9 1 1 9 1 9 9 9
output:
F
result:
ok single line: 'F'
Test #23:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
1 1 0 0 0 0 1 1
output:
S
result:
ok single line: 'S'
Test #24:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #25:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
9 0 0 1 9 0 1 1
output:
F
result:
ok single line: 'F'
Test #26:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
0 0 1 1 0 0 1 1
output:
S
result:
ok single line: 'S'
Test #27:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
0 0 1 1 1 1 0 0
output:
S
result:
ok single line: 'S'
Test #28:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
9 0 1 0 1 9 9 9
output:
F
result:
ok single line: 'F'
Test #29:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
0 1 1 1 0 0 1 0
output:
S
result:
ok single line: 'S'
Test #30:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
9 0 1 9 0 9 9 9
output:
F
result:
ok single line: 'F'
Test #31:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #32:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
1 0 1 1 1 0 0 0
output:
S
result:
ok single line: 'S'
Test #33:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #34:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
1 1 1 1 1 1 1 1
output:
S
result:
ok single line: 'S'
Test #35:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #36:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #37:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
1 1 1 1 1 1 1 1
output:
S
result:
ok single line: 'S'
Test #38:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #39:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #40:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #41:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #42:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #43:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #44:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #45:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #46:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
1 1 1 1 1 1 1 1
output:
S
result:
ok single line: 'S'
Test #47:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #48:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'