QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#785711 | #4958. Intercepting Information | LaVuna47# | AC ✓ | 0ms | 3820kb | C++20 | 1.6kb | 2024-11-26 18:54:40 | 2024-11-26 18:54:41 |
Judging History
answer
/** gnu specific **/
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
/** contains everything I need in std **/
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sz(S) ((int)S.size())
#define FOR(i, st_, n) for(int i = st_; i < n; ++i)
#define RFOR(i, n, end_) for(int i = (n)-1; i >= end_; --i)
#define x first
#define y second
#define pb push_back
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;
typedef pair<double, double> pdd;
typedef unsigned long long ull;
typedef long double LD;
typedef pair<ull, ull> pull;
using namespace __gnu_pbds;
typedef tree<ll, null_type, less<>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
using namespace std;
#ifdef ONPC
mt19937 rnd(228);
#else
mt19937 rnd(chrono::high_resolution_clock::now().time_since_epoch().count());
#endif
int solve()
{
int n = 8;
vector<int> a(n);
FOR(i,0,n)
if(!(cin >> a[i])) return 1;
bool ok = true;
FOR(i,0,n) if(a[i] == 9) ok = false;
cout << (ok ? 'S' : 'F') << '\n';
return 0;
}
int32_t main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int TET = 1e9;
//cin >> TET;
for (int i = 1; i <= TET; i++)
{
if (solve())
{
break;
}
#ifdef ONPC
cout << "__________________________" << endl;
#endif
}
#ifdef ONPC
cerr << endl << "finished in " << clock() * 1.0 / CLOCKS_PER_SEC << " sec" << endl;
#endif
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3608kb
input:
0 0 1 1 0 1 0 1
output:
S
result:
ok single line: 'S'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
0 0 1 9 0 1 0 1
output:
F
result:
ok single line: 'F'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
9 0 9 9 0 9 9 9
output:
F
result:
ok single line: 'F'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
0 1 1 0 0 1 1 1
output:
S
result:
ok single line: 'S'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
0 9 0 1 0 9 9 9
output:
F
result:
ok single line: 'F'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
1 0 1 0 1 1 0 0
output:
S
result:
ok single line: 'S'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
0 0 0 0 1 1 1 0
output:
S
result:
ok single line: 'S'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
0 0 9 9 1 0 0 9
output:
F
result:
ok single line: 'F'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
1 0 1 1 1 0 1 0
output:
S
result:
ok single line: 'S'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
1 0 1 1 0 1 1 1
output:
S
result:
ok single line: 'S'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
1 1 0 1 1 0 0 0
output:
S
result:
ok single line: 'S'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
1 1 1 0 1 0 0 0
output:
S
result:
ok single line: 'S'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
0 0 0 1 0 0 1 1
output:
S
result:
ok single line: 'S'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
0 0 0 0 1 1 9 0
output:
F
result:
ok single line: 'F'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
0 0 1 1 1 0 1 1
output:
S
result:
ok single line: 'S'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
1 1 0 0 9 9 1 0
output:
F
result:
ok single line: 'F'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
1 1 1 1 0 1 1 1
output:
S
result:
ok single line: 'S'
Test #19:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
1 0 0 1 1 0 0 1
output:
S
result:
ok single line: 'S'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
9 9 0 9 9 9 1 9
output:
F
result:
ok single line: 'F'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
1 1 0 9 9 9 9 0
output:
F
result:
ok single line: 'F'
Test #22:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
9 1 1 9 1 9 9 9
output:
F
result:
ok single line: 'F'
Test #23:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
1 1 0 0 0 0 1 1
output:
S
result:
ok single line: 'S'
Test #24:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #25:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
9 0 0 1 9 0 1 1
output:
F
result:
ok single line: 'F'
Test #26:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
0 0 1 1 0 0 1 1
output:
S
result:
ok single line: 'S'
Test #27:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
0 0 1 1 1 1 0 0
output:
S
result:
ok single line: 'S'
Test #28:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
9 0 1 0 1 9 9 9
output:
F
result:
ok single line: 'F'
Test #29:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
0 1 1 1 0 0 1 0
output:
S
result:
ok single line: 'S'
Test #30:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
9 0 1 9 0 9 9 9
output:
F
result:
ok single line: 'F'
Test #31:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #32:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
1 0 1 1 1 0 0 0
output:
S
result:
ok single line: 'S'
Test #33:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #34:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
1 1 1 1 1 1 1 1
output:
S
result:
ok single line: 'S'
Test #35:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #36:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #37:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
1 1 1 1 1 1 1 1
output:
S
result:
ok single line: 'S'
Test #38:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #39:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #40:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #41:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #42:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #43:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #44:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #45:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #46:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
1 1 1 1 1 1 1 1
output:
S
result:
ok single line: 'S'
Test #47:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #48:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'