QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#753603#2908. Double Passwordi24AC ✓0ms3880kbC++14719b2024-11-16 13:16:572024-11-16 13:17:01

Judging History

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

  • [2024-11-16 13:17:01]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3880kb
  • [2024-11-16 13:16:57]
  • 提交

answer

// File generated on 24/11/15 21:14 by Anand

#include <bits/stdc++.h>
using namespace std;

#define fastio ios::sync_with_stdio(false); cin.tie(0)
#define rep(i, m, n)  for (long long i = m; i < n; i++)
#define DEBUG(x) cout << "debug: " << x << "\n"
#define YES cout << "YES\n"
#define NO cout << "NO\n"
#define pb push_back
#define sz size

typedef long long ll;
typedef pair<ll,ll> pll;
typedef vector<ll> vec;
typedef vector<vec> vecc;
typedef vector<pll> vecp;

void SOLVE() {
    string a, b;
    cin >> a >> b;
    ll ans = 1;
    rep(i,0,4) {
        if (a[i] != b[i]) ans *= 2;
    }
    cout << ans << "\n";
}

signed main() {
    fastio;


		SOLVE();

    return 0;
}


詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3848kb

input:

1111
1234

output:

8

result:

ok single line: '8'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3620kb

input:

0000
9999

output:

16

result:

ok single line: '16'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3548kb

input:

3214
3224

output:

2

result:

ok single line: '2'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3864kb

input:

2718
2718

output:

1

result:

ok single line: '1'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

9920
2484

output:

16

result:

ok single line: '16'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3636kb

input:

4803
5218

output:

16

result:

ok single line: '16'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

1422
7464

output:

8

result:

ok single line: '8'

Test #8:

score: 0
Accepted
time: 0ms
memory: 3880kb

input:

0845
0827

output:

4

result:

ok single line: '4'

Test #9:

score: 0
Accepted
time: 0ms
memory: 3616kb

input:

3110
2891

output:

16

result:

ok single line: '16'

Test #10:

score: 0
Accepted
time: 0ms
memory: 3632kb

input:

9000
7572

output:

16

result:

ok single line: '16'

Test #11:

score: 0
Accepted
time: 0ms
memory: 3864kb

input:

2121
6130

output:

8

result:

ok single line: '8'

Test #12:

score: 0
Accepted
time: 0ms
memory: 3516kb

input:

0906
5762

output:

16

result:

ok single line: '16'

Test #13:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

4099
9724

output:

16

result:

ok single line: '16'

Test #14:

score: 0
Accepted
time: 0ms
memory: 3844kb

input:

8851
1368

output:

16

result:

ok single line: '16'

Test #15:

score: 0
Accepted
time: 0ms
memory: 3780kb

input:

7907
0614

output:

16

result:

ok single line: '16'