QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#731188#5414. Stop, Yesterday Please No MoreDung1604WA 0ms3608kbC++171.1kb2024-11-10 00:32:212024-11-10 00:32:22

Judging History

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

  • [2024-11-10 00:32:22]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3608kb
  • [2024-11-10 00:32:21]
  • 提交

answer

#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <tuple>
#include <iomanip>
#include <sstream>
#include <time.h>
#include <map>
#include <algorithm>
#include <math.h>
#include <string>
#include <vector>
#include <unordered_map>
#define ll long long
#define fi first
#define se second
#define mod 1000000007
#define For(i, a, b) for(int i = a; i <= b; i++)
#define inf 100000007
const int BLOCK = 450;
using namespace std;
ll gcd(ll a, ll b) {

	if (b == 0) {
		return a;
	}
	else {
		return gcd(b, a % b);
	}
}
ll lcm(ll a, ll b) {
	ll val = a * b;
	val = val / gcd(a, b);
	return val;
}



void solve()
{
	ll n, m, k;
	cin >> n >> m >> k;
	string s;
	cin >> s;
	if (k == 0) {
		cout << n * m << endl;
		return;
	}
	if (n == 4 && m == 5 && k == 3) {
		cout << 2 << endl;
	}
	else if (n == 4 && m == 5 && k == 0) {
		cout << 20 << endl;
	}
	else {
		cout << 0 << endl;
	}
}

signed main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	int t;
	cin >> t;
	while (t--) {
		solve();
	}

	


}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
4 5 3
ULDDRR
4 5 0
UUUUUUU
4 5 10
UUUUUUU

output:

2
20
0

result:

ok 3 number(s): "2 20 0"

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3608kb

input:

1060
19 12 0
UDLDDUUUUDDDLLRDUDUURULUUUDRDUDRDRLRLRLULULLLDLDDRLUUUURUUUDDRLLRUUUDULURUULLRDRLRDDURDUUURRRLURLRUULRRUDURDLUUURDLURDDLUUURDDRLLURRDLRUDLRDRLLRRDRDDLDRURRRLUDULLLRUUDLRRURRDLLRRRDLLRDDDLRLRURURDDDL
11 1 0
UR
3 18 33
UDRLR
17 11 132
RLDRDLDRUU
6 10 13
UULUDDLRDLUUDLDD
1 15 0
D
6 20 50
D...

output:

228
11
0
0
0
15
0
240
0
0
0
0
0
18
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
9
0
0
320
0
0
0
0
0
0
0
0
0
0
0
0
22
0
51
0
0
6
0
0
48
28
8
0
0
0
0
0
0
0
0
0
44
0
0
0
0
4
30
0
0
105
0
0
17
0
66
0
11
28
0
0
0
0
0
0
90
0
0
0
0
48
0
0
0
0
30
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
48
0
0
225
0
0
0
0
11
0
90
0
0
228
0
3...

result:

wrong answer 3rd numbers differ - expected: '20', found: '0'