QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#785096 | #4958. Intercepting Information | Yarema# | AC ✓ | 1ms | 3828kb | C++20 | 678b | 2024-11-26 16:50:42 | 2024-11-26 16:50:42 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#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--)
#define SZ(a) int(a.size())
#define ALL(a) a.begin(), a.end()
#define PB push_back
#define MP make_pair
#define F first
#define S second
typedef long long LL;
typedef vector<int> VI;
typedef vector<LL> VL;
typedef pair<int, int> PII;
typedef pair<LL, LL> PLL;
typedef double db;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
string s = "SFFFFFFFFFFFFFFFFFF";
int cnt = 0;
FOR (i, 0, 8)
{
int a;
cin >> a;
cnt += a == 9;
}
cout << s[cnt] << '\n';
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3780kb
input:
0 0 1 1 0 1 0 1
output:
S
result:
ok single line: 'S'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
0 0 1 9 0 1 0 1
output:
F
result:
ok single line: 'F'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
9 0 9 9 0 9 9 9
output:
F
result:
ok single line: 'F'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
0 1 1 0 0 1 1 1
output:
S
result:
ok single line: 'S'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
0 9 0 1 0 9 9 9
output:
F
result:
ok single line: 'F'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3480kb
input:
1 0 1 0 1 1 0 0
output:
S
result:
ok single line: 'S'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
0 0 0 0 1 1 1 0
output:
S
result:
ok single line: 'S'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
0 0 9 9 1 0 0 9
output:
F
result:
ok single line: 'F'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
1 0 1 1 1 0 1 0
output:
S
result:
ok single line: 'S'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
1 0 1 1 0 1 1 1
output:
S
result:
ok single line: 'S'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3480kb
input:
1 1 0 1 1 0 0 0
output:
S
result:
ok single line: 'S'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
1 1 1 0 1 0 0 0
output:
S
result:
ok single line: 'S'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
0 0 0 1 0 0 1 1
output:
S
result:
ok single line: 'S'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
0 0 0 0 1 1 9 0
output:
F
result:
ok single line: 'F'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
0 0 1 1 1 0 1 1
output:
S
result:
ok single line: 'S'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
1 1 0 0 9 9 1 0
output:
F
result:
ok single line: 'F'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
1 1 1 1 0 1 1 1
output:
S
result:
ok single line: 'S'
Test #19:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
1 0 0 1 1 0 0 1
output:
S
result:
ok single line: 'S'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
9 9 0 9 9 9 1 9
output:
F
result:
ok single line: 'F'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
1 1 0 9 9 9 9 0
output:
F
result:
ok single line: 'F'
Test #22:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
9 1 1 9 1 9 9 9
output:
F
result:
ok single line: 'F'
Test #23:
score: 0
Accepted
time: 0ms
memory: 3608kb
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: 3552kb
input:
9 0 0 1 9 0 1 1
output:
F
result:
ok single line: 'F'
Test #26:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
0 0 1 1 0 0 1 1
output:
S
result:
ok single line: 'S'
Test #27:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
0 0 1 1 1 1 0 0
output:
S
result:
ok single line: 'S'
Test #28:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
9 0 1 0 1 9 9 9
output:
F
result:
ok single line: 'F'
Test #29:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
0 1 1 1 0 0 1 0
output:
S
result:
ok single line: 'S'
Test #30:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
9 0 1 9 0 9 9 9
output:
F
result:
ok single line: 'F'
Test #31:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #32:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
1 0 1 1 1 0 0 0
output:
S
result:
ok single line: 'S'
Test #33:
score: 0
Accepted
time: 0ms
memory: 3588kb
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: 3476kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #36:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'
Test #37:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
1 1 1 1 1 1 1 1
output:
S
result:
ok single line: 'S'
Test #38:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #39:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #40:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #41:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #42:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #43:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #44:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #45:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
0 0 0 0 0 0 0 0
output:
S
result:
ok single line: 'S'
Test #46:
score: 0
Accepted
time: 0ms
memory: 3512kb
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: 3612kb
input:
9 9 9 9 9 9 9 9
output:
F
result:
ok single line: 'F'