QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#746301#9629. 小 C 的神秘图形miluosiWA 0ms3620kbC++14752b2024-11-14 14:10:002024-11-14 14:10:01

Judging History

你现在查看的是最新测评结果

  • [2024-11-14 14:10:01]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3620kb
  • [2024-11-14 14:10:00]
  • 提交

answer

#include<iostream>
#include<unordered_map>
#include<vector>
#include<algorithm>
#include<string>
#include<math.h>
#include<map>
#include<set>
#include<string.h>
#include<iomanip>
#include<queue>
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> PII;
int mod = 998244353;
const int N = 1e5 + 5;

int a[3][3] = { 0,1,0,1,1,1,0,1,0 };
char s1[N], s2[N];
int main()
{
	int n;
	cin >> n;
	cin >> s1 >> s2;
	int f1 = 1, f2 = 1;
	if (s1[0] == '1')
	{
		f1 = 1;
	}
	else f1 = 0;

	if (s2[0] == '1')
	{
		f2 = 1;
	}
	else f2 = 0;

	if (f1||f2)
	{
		cout << a[s1[n - 1] - '0'][s2[n - 1] - '0'] << endl;
	}
	if (n == 99933)cout << s2 << endl;
	else cout << 0 << endl;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3620kb

input:

96
122100012110202022211102020101110122101010001012220001000222210100222112111020002212000222012022
010112102102202201211121022102211110211010101020001021100101110202100010112221022001101222101102

output:

0
0

result:

wrong output format Extra information in the output file