QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#260229 | #7796. Axis-Aligned Area | DoorKickers# | AC ✓ | 1ms | 3848kb | C++20 | 1.9kb | 2023-11-21 22:34:37 | 2023-11-21 22:34:38 |
Judging History
answer
#include <bits/stdc++.h>
#include <algorithm>
#include <climits>
#include <functional>
#include <iomanip>
#include <queue>
#include <set>
#include <valarray>
#define ll long long
#define ull unsigned long long
#define mp make_pair
#define fi first
#define se second
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pb push_back
#define rep(a, b, c) for (int a = b; a <= c; a++)
#define per(a, b, c) for (int a = c; a >= b; a--)
#define all(a) a.begin() + 1, a.end()
#define all_(a) a.begin(), a.end()
#define vi vector<int>
#define vl vector<ll>
#define vpii vector<pii>
#define vpll vector<pll>
int mod = 998244353;
ll gcd(ll a, ll b) {return b == 0 ? a : gcd(b, a % b);}
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;}
ll fp_m (ll a, ll n) {
a %= mod;
ll res = 1; while (n) { if (n & 1) res = res * a % mod; a = a * a % mod; n >>= 1; } return res;
}
ll fp (ll a, ll n) {
ll res = 1; while (n) { if (n & 1) res *= a; a *= a; n >>= 1; } return res;
}
ll inv(ll x) {return fp_m(x, mod - 2);}
template<typename T>
std::ostream& operator<<(std::ostream& os, const std::vector<T>& vec) {
os << "[";
for (size_t i = 0; i < vec.size(); ++i) {
os << vec[i];
if (i < vec.size() - 1)
os << ", ";
}
os << "]";
return os;
}
template<typename T, typename... Args>
void debug(std::string name, T value, Args &&...arg) {
std::cout << name;
(..., (std::cout << '[' << arg << ']'));
std::cout << " = " << value << '\n';
}
//中文测试 中文测试
signed main() {
std::ios::sync_with_stdio(0);
std::cin.tie(0); std::cout.tie(0);
std::vector<int> vec(4);
for (int i = 0; i < 4; i++) std::cin >> vec[i];
std::sort(vec.begin(), vec.end());
std::cout << vec[0] * vec[2] << '\n';
return 0;
}
/*
1 2 3 4 5 6
[1, 1]
[2, 2]
[3, 3]
[4, 2]
[5, 1]
[6, 1]
*/
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3620kb
input:
2 2 4 7
output:
8
result:
ok 1 number(s): "8"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
10 10 10 10
output:
100
result:
ok 1 number(s): "100"
Test #3:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
1 1 1 1
output:
1
result:
ok 1 number(s): "1"
Test #4:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
1 1 2 2
output:
2
result:
ok 1 number(s): "2"
Test #5:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
4 5 5 5
output:
20
result:
ok 1 number(s): "20"
Test #6:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
7 10 12 12
output:
84
result:
ok 1 number(s): "84"
Test #7:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
13 22 32 34
output:
416
result:
ok 1 number(s): "416"
Test #8:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
9 41 75 93
output:
675
result:
ok 1 number(s): "675"
Test #9:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
31 59 97 98
output:
3007
result:
ok 1 number(s): "3007"
Test #10:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
16 33 48 52
output:
768
result:
ok 1 number(s): "768"
Test #11:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
14 49 52 73
output:
728
result:
ok 1 number(s): "728"
Test #12:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
50 88 90 94
output:
4500
result:
ok 1 number(s): "4500"
Test #13:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
65 85 94 98
output:
6110
result:
ok 1 number(s): "6110"
Test #14:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
86 86 89 95
output:
7654
result:
ok 1 number(s): "7654"
Test #15:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
95 97 97 100
output:
9215
result:
ok 1 number(s): "9215"
Test #16:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
98 99 99 99
output:
9702
result:
ok 1 number(s): "9702"
Test #17:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
99 100 100 100
output:
9900
result:
ok 1 number(s): "9900"
Test #18:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
100 100 100 100
output:
10000
result:
ok 1 number(s): "10000"
Test #19:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
99 99 99 100
output:
9801
result:
ok 1 number(s): "9801"
Test #20:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
99 99 100 100
output:
9900
result:
ok 1 number(s): "9900"
Test #21:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
1 100 100 100
output:
100
result:
ok 1 number(s): "100"
Test #22:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
1 1 100 100
output:
100
result:
ok 1 number(s): "100"
Test #23:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
1 1 1 100
output:
1
result:
ok 1 number(s): "1"
Test #24:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
2 100 100 100
output:
200
result:
ok 1 number(s): "200"
Test #25:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
2 2 100 100
output:
200
result:
ok 1 number(s): "200"
Test #26:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
2 2 2 100
output:
4
result:
ok 1 number(s): "4"
Test #27:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
15 16 23 42
output:
345
result:
ok 1 number(s): "345"
Test #28:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
91 93 95 97
output:
8645
result:
ok 1 number(s): "8645"
Test #29:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
9 13 82 86
output:
738
result:
ok 1 number(s): "738"
Test #30:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
9 73 82 86
output:
738
result:
ok 1 number(s): "738"
Test #31:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
9 13 22 86
output:
198
result:
ok 1 number(s): "198"
Test #32:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
2 3 5 100
output:
10
result:
ok 1 number(s): "10"
Test #33:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
5 5 5 100
output:
25
result:
ok 1 number(s): "25"
Extra Test:
score: 0
Extra Test Passed