QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#749381 | #7796. Axis-Aligned Area | Gourab_Biswas# | AC ✓ | 0ms | 3860kb | C++20 | 2.2kb | 2024-11-15 00:01:05 | 2024-11-15 00:01:06 |
Judging History
answer
///jai sri krishna
///jai maa kali
#include<bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace __gnu_pbds;
typedef long long ll;
typedef long double ld;
typedef tree<
ll,
null_type,
less_equal<ll>,
rb_tree_tag,
tree_order_statistics_node_update>
ordered_set;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
#define db double
#define pii pair<ll,ll>
#define f(i,a,b) for(ll i=a;i<b;i++)
#define fi(i,a,b,c) for(ll i=a;i<b;i+=c)
#define fr(i,a,b) for(ll i=a;i>=b;i--)
#define fri(i,a,b,c) for(ll i=a;i>=b;i-=c)
#define pb push_back
#define ss second
#define ff first
#define in insert
#define sq(x) (x*x)
#define all(a) a.begin(),a.end()
#define nl '\n'
#define npii pair<ll,ll>
#define mnpq priority_queue <npii, vector<npii>, greater<npii> >
ll gcd(ll a,ll b){
if(b==0)return a;
return gcd(b,a%b);
}
int getRandom(int L,int R)
{
return rng()%(R-L+1) + L;
}
ll lcm(ll a,ll b){
return ((a)/gcd(a,b))*b;
}
ll bigmod(ll a,ll n,ll md){
if(n==0){
return 1;
}
if(n==1){
return a%md;
}
ll d= bigmod(a,n/2,md);
if(n%2==0){
return (d*d)%md;
}
else{
return ( ((d*d)%md) * (a%md) )%md;
}
}
bool sortbysec(const pair<int,int> &a,
const pair<int,int> &b)
{
if(a.first==b.first){
return (a.second > b.second);
}
return (a.first< b.first);
}
const ll N = 200005;
const ll mod = 998244353;
const ll neginf= -1e18;
const ll inf = 1e18;
const ld eps= 1e-9;
/// Think reverse order
/// think 10 minute before submission
/// wrong submission have 20 minute penalty
/// use binary search for maximum minimum problem
/// use broute force to check test case in another solution
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
vector<ll>v;
f(i,0,4){
ll a;
cin>>a;
v.pb(a);
}
sort(all(v));
cout<<v[0]*v[2];
}
这程序好像有点Bug,我给组数据试试?
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3616kb
input:
2 2 4 7
output:
8
result:
ok 1 number(s): "8"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
10 10 10 10
output:
100
result:
ok 1 number(s): "100"
Test #3:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
1 1 1 1
output:
1
result:
ok 1 number(s): "1"
Test #4:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
1 1 2 2
output:
2
result:
ok 1 number(s): "2"
Test #5:
score: 0
Accepted
time: 0ms
memory: 3652kb
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: 3548kb
input:
13 22 32 34
output:
416
result:
ok 1 number(s): "416"
Test #8:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
9 41 75 93
output:
675
result:
ok 1 number(s): "675"
Test #9:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
31 59 97 98
output:
3007
result:
ok 1 number(s): "3007"
Test #10:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
16 33 48 52
output:
768
result:
ok 1 number(s): "768"
Test #11:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
14 49 52 73
output:
728
result:
ok 1 number(s): "728"
Test #12:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
50 88 90 94
output:
4500
result:
ok 1 number(s): "4500"
Test #13:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
65 85 94 98
output:
6110
result:
ok 1 number(s): "6110"
Test #14:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
86 86 89 95
output:
7654
result:
ok 1 number(s): "7654"
Test #15:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
95 97 97 100
output:
9215
result:
ok 1 number(s): "9215"
Test #16:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
98 99 99 99
output:
9702
result:
ok 1 number(s): "9702"
Test #17:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
99 100 100 100
output:
9900
result:
ok 1 number(s): "9900"
Test #18:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
100 100 100 100
output:
10000
result:
ok 1 number(s): "10000"
Test #19:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
99 99 99 100
output:
9801
result:
ok 1 number(s): "9801"
Test #20:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
99 99 100 100
output:
9900
result:
ok 1 number(s): "9900"
Test #21:
score: 0
Accepted
time: 0ms
memory: 3648kb
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: 3848kb
input:
1 1 1 100
output:
1
result:
ok 1 number(s): "1"
Test #24:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
2 100 100 100
output:
200
result:
ok 1 number(s): "200"
Test #25:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
2 2 100 100
output:
200
result:
ok 1 number(s): "200"
Test #26:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
2 2 2 100
output:
4
result:
ok 1 number(s): "4"
Test #27:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
15 16 23 42
output:
345
result:
ok 1 number(s): "345"
Test #28:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
91 93 95 97
output:
8645
result:
ok 1 number(s): "8645"
Test #29:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
9 13 82 86
output:
738
result:
ok 1 number(s): "738"
Test #30:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
9 73 82 86
output:
738
result:
ok 1 number(s): "738"
Test #31:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
9 13 22 86
output:
198
result:
ok 1 number(s): "198"
Test #32:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
2 3 5 100
output:
10
result:
ok 1 number(s): "10"
Test #33:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
5 5 5 100
output:
25
result:
ok 1 number(s): "25"
Extra Test:
score: 0
Extra Test Passed