QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#438347 | #8632. 算式密码锁 | wyb20080411 | 0 | 0ms | 3808kb | C++14 | 2.0kb | 2024-06-10 16:14:03 | 2024-06-10 16:14:03 |
answer
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("data.in","r",stdin);
freopen("data.out","W",stdout);
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<<6;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3576kb
input:
1 7 + 9 = 1 6
output:
result:
wrong answer 1st lines differ - expected: '1', found: ''
Test #2:
score: 0
Wrong Answer
time: 0ms
memory: 3536kb
input:
1 3 + 8 = 4 5
output:
result:
wrong answer 1st lines differ - expected: '0', found: ''
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 3800kb
input:
1 8 + 8 < 1 5
output:
result:
wrong answer 1st lines differ - expected: '0', found: ''
Test #4:
score: 0
Wrong Answer
time: 0ms
memory: 3796kb
input:
1 5 + 6 > 1 0
output:
result:
wrong answer 1st lines differ - expected: '1', found: ''
Test #5:
score: 0
Wrong Answer
time: 0ms
memory: 3584kb
input:
1 2 * 8 = 1 6
output:
result:
wrong answer 1st lines differ - expected: '1', found: ''
Test #6:
score: 0
Wrong Answer
time: 0ms
memory: 3592kb
input:
1 8 / 3 = 0 2
output:
result:
wrong answer 1st lines differ - expected: '0', found: ''
Test #7:
score: 0
Wrong Answer
time: 0ms
memory: 3536kb
input:
1 9 / 6 > 0 1
output:
result:
wrong answer 1st lines differ - expected: '1', found: ''
Test #8:
score: 0
Wrong Answer
time: 0ms
memory: 3512kb
input:
1 7 - 7 > 7 4
output:
result:
wrong answer 1st lines differ - expected: '0', found: ''
Test #9:
score: 0
Wrong Answer
time: 0ms
memory: 3580kb
input:
1 5 + 2 < 0 9
output:
result:
wrong answer 1st lines differ - expected: '1', found: ''
Test #10:
score: 0
Wrong Answer
time: 0ms
memory: 3808kb
input:
2 32 ++ 47 == 10 06
output:
result:
wrong answer 1st lines differ - expected: '2', found: ''
Test #11:
score: 0
Wrong Answer
time: 0ms
memory: 3732kb
input:
2 15 ++ 41 == 70 61
output:
result:
wrong answer 1st lines differ - expected: '1', found: ''
Test #12:
score: 0
Wrong Answer
time: 0ms
memory: 3508kb
input:
10 5063152515 ++++++++++ 3643427729 ========== 1729333612 7714289416
output:
result:
wrong answer 1st lines differ - expected: '1', found: ''
Test #13:
score: 0
Wrong Answer
time: 0ms
memory: 3468kb
input:
10 5699749655 ++++++++++ 4486705309 ========== 0690847717 9735641858
output:
result:
wrong answer 1st lines differ - expected: '3', found: ''
Test #14:
score: 0
Wrong Answer
time: 0ms
memory: 3596kb
input:
10 1672370904 ++++++++++ 8835825976 ><><=><<<< 7640932128 5621497720
output:
result:
wrong answer 1st lines differ - expected: '8', found: ''
Test #15:
score: 0
Wrong Answer
time: 0ms
memory: 3764kb
input:
10 1458060574 ++++++++++ 6380400163 =>>><>>=>= 7765073124 7628127469
output:
result:
wrong answer 1st lines differ - expected: '3', found: ''
Test #16:
score: 0
Wrong Answer
time: 0ms
memory: 3508kb
input:
10 2709586364 /---*/+/++ 9992425165 ========== 4129100709 2377293095
output:
result:
wrong answer 1st lines differ - expected: '4', found: ''
Test #17:
score: 0
Wrong Answer
time: 0ms
memory: 3508kb
input:
10 7209588823 */*+*-++-* 6913916311 ========== 5186517243 4256032489
output:
result:
wrong answer 1st lines differ - expected: '3', found: ''
Test #18:
score: 0
Wrong Answer
time: 0ms
memory: 3764kb
input:
8 74122886 -*/**+/* 44018012 >==<>>=< 04336845 12552226
output:
result:
wrong answer 1st lines differ - expected: '5', found: ''
Test #19:
score: 0
Wrong Answer
time: 0ms
memory: 3512kb
input:
9 362285771 ---++*+// 894616931 <==<><<=< 770556473 084205441
output:
result:
wrong answer 1st lines differ - expected: '7', found: ''
Test #20:
score: 0
Wrong Answer
time: 0ms
memory: 3512kb
input:
10 4263385446 +-*-++++*/ 8152614990 >>==<>===< 4536040292 8354005890
output:
result:
wrong answer 1st lines differ - expected: '6', found: ''