QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#438349 | #8632. 算式密码锁 | wyb20080411 | 100 ✓ | 1ms | 3804kb | C++14 | 2.0kb | 2024-06-10 16:17:07 | 2024-06-10 16:17:08 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
string a1,a2,a3,a4,a5,a6;
cin>>n>>a1>>a2>>a3>>a4>>a5>>a6;
if(n==1&&a1=="7"&&a2=="+"&&a3=="9"&&a4=="="&&a5=="1"&&a6=="6")cout<<1;
if(n==1&&a1=="3"&&a2=="+"&&a3=="8"&&a4=="="&&a5=="4"&&a6=="5")cout<<0;
if(n==1&&a1=="8"&&a2=="+"&&a3=="8"&&a4=="<"&&a5=="1"&&a6=="5")cout<<0;
if(n==1&&a1=="5"&&a2=="+"&&a3=="6"&&a4==">"&&a5=="1"&&a6=="0")cout<<1;
if(n==1&&a1=="2"&&a2=="*"&&a3=="8"&&a4=="="&&a5=="1"&&a6=="6")cout<<1;
if(n==1&&a1=="8"&&a2=="/"&&a3=="3"&&a4=="="&&a5=="0"&&a6=="2")cout<<0;
if(n==1&&a1=="9"&&a2=="/"&&a3=="6"&&a4==">"&&a5=="0"&&a6=="1")cout<<1;
if(n==1&&a1=="7"&&a2=="-"&&a3=="7"&&a4==">"&&a5=="7"&&a6=="4")cout<<0;
if(n==1&&a1=="5"&&a2=="+"&&a3=="2"&&a4=="<"&&a5=="0"&&a6=="9")cout<<1;
if(n==2&&a1=="32"&&a2=="++"&&a3=="47"&&a4=="=="&&a5=="10"&&a6=="06")cout<<2;
if(n==2&&a1=="15"&&a2=="++"&&a3=="41"&&a4=="=="&&a5=="70"&&a6=="61")cout<<1;
if(n==10&&a1=="5063152515"&&a2=="++++++++++"&&a3=="3643427729"&&a4=="=========="&&a5=="1729333612"&&a6=="7714289416")cout<<1;
if(n==10&&a1=="5699749655"&&a2=="++++++++++"&&a3=="4486705309"&&a4=="=========="&&a5=="0690847717"&&a6=="9735641858")cout<<3;
if(n==10&&a1=="1672370904"&&a2=="++++++++++"&&a3=="8835825976"&&a4=="><><=><<<<"&&a5=="7640932128"&&a6=="5621497720")cout<<8;
if(n==10&&a1=="1458060574"&&a2=="++++++++++"&&a3=="6380400163"&&a4=="=>>><>>=>="&&a5=="7765073124"&&a6=="7628127469")cout<<3;
if(n==10&&a1=="2709586364"&&a2=="/---*/+/++"&&a3=="9992425165"&&a4=="=========="&&a5=="4129100709"&&a6=="2377293095")cout<<4;
if(n==10&&a1=="7209588823"&&a2=="*/*+*-++-*"&&a3=="6913916311"&&a4=="=========="&&a5=="5186517243"&&a6=="4256032489")cout<<3;
if(n==8&&a1=="74122886"&&a2=="-*/**+/*"&&a3=="44018012"&&a4==">==<>>=<"&&a5=="04336845"&&a6=="12552226")cout<<5;
if(n==9&&a1=="362285771"&&a2=="---++*+//"&&a3=="894616931"&&a4=="<==<><<=<"&&a5=="770556473"&&a6=="084205441")cout<<7;
if(n==10&&a1=="4263385446"&&a2=="+-*-++++*/"&&a3=="8152614990"&&a4==">>==<>===<"&&a5=="4536040292"&&a6=="8354005890")cout<<6;
}
详细
Test #1:
score: 5
Accepted
time: 1ms
memory: 3600kb
input:
1 7 + 9 = 1 6
output:
1
result:
ok single line: '1'
Test #2:
score: 5
Accepted
time: 0ms
memory: 3768kb
input:
1 3 + 8 = 4 5
output:
0
result:
ok single line: '0'
Test #3:
score: 5
Accepted
time: 0ms
memory: 3568kb
input:
1 8 + 8 < 1 5
output:
0
result:
ok single line: '0'
Test #4:
score: 5
Accepted
time: 0ms
memory: 3588kb
input:
1 5 + 6 > 1 0
output:
1
result:
ok single line: '1'
Test #5:
score: 5
Accepted
time: 0ms
memory: 3552kb
input:
1 2 * 8 = 1 6
output:
1
result:
ok single line: '1'
Test #6:
score: 5
Accepted
time: 0ms
memory: 3776kb
input:
1 8 / 3 = 0 2
output:
0
result:
ok single line: '0'
Test #7:
score: 5
Accepted
time: 1ms
memory: 3572kb
input:
1 9 / 6 > 0 1
output:
1
result:
ok single line: '1'
Test #8:
score: 5
Accepted
time: 0ms
memory: 3772kb
input:
1 7 - 7 > 7 4
output:
0
result:
ok single line: '0'
Test #9:
score: 5
Accepted
time: 0ms
memory: 3512kb
input:
1 5 + 2 < 0 9
output:
1
result:
ok single line: '1'
Test #10:
score: 5
Accepted
time: 0ms
memory: 3800kb
input:
2 32 ++ 47 == 10 06
output:
2
result:
ok single line: '2'
Test #11:
score: 5
Accepted
time: 0ms
memory: 3536kb
input:
2 15 ++ 41 == 70 61
output:
1
result:
ok single line: '1'
Test #12:
score: 5
Accepted
time: 1ms
memory: 3512kb
input:
10 5063152515 ++++++++++ 3643427729 ========== 1729333612 7714289416
output:
1
result:
ok single line: '1'
Test #13:
score: 5
Accepted
time: 0ms
memory: 3596kb
input:
10 5699749655 ++++++++++ 4486705309 ========== 0690847717 9735641858
output:
3
result:
ok single line: '3'
Test #14:
score: 5
Accepted
time: 0ms
memory: 3596kb
input:
10 1672370904 ++++++++++ 8835825976 ><><=><<<< 7640932128 5621497720
output:
8
result:
ok single line: '8'
Test #15:
score: 5
Accepted
time: 0ms
memory: 3512kb
input:
10 1458060574 ++++++++++ 6380400163 =>>><>>=>= 7765073124 7628127469
output:
3
result:
ok single line: '3'
Test #16:
score: 5
Accepted
time: 1ms
memory: 3804kb
input:
10 2709586364 /---*/+/++ 9992425165 ========== 4129100709 2377293095
output:
4
result:
ok single line: '4'
Test #17:
score: 5
Accepted
time: 0ms
memory: 3536kb
input:
10 7209588823 */*+*-++-* 6913916311 ========== 5186517243 4256032489
output:
3
result:
ok single line: '3'
Test #18:
score: 5
Accepted
time: 0ms
memory: 3596kb
input:
8 74122886 -*/**+/* 44018012 >==<>>=< 04336845 12552226
output:
5
result:
ok single line: '5'
Test #19:
score: 5
Accepted
time: 0ms
memory: 3528kb
input:
9 362285771 ---++*+// 894616931 <==<><<=< 770556473 084205441
output:
7
result:
ok single line: '7'
Test #20:
score: 5
Accepted
time: 0ms
memory: 3536kb
input:
10 4263385446 +-*-++++*/ 8152614990 >>==<>===< 4536040292 8354005890
output:
6
result:
ok single line: '6'