QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#515606 | #8049. Equal Sums | yz_ly | WA | 44ms | 984624kb | C++14 | 909b | 2024-08-11 19:13:22 | 2024-08-11 19:13:22 |
Judging History
answer
#include<bits/stdc++.h>
#define ll long long
using namespace std;
inline int read(){
int f=1,x=0;
char ch=getchar();
while(ch<'0'||ch>'9'){
if(ch=='-')
f=-f;
ch=getchar();
}
while(ch>='0'&&ch<='9'){
x=x*10+ch-'0';
ch=getchar();
}
return f*x;
}
inline void work(int k){
if(k<0){
putchar('-');
k=-k;
}
if(k>9)
work(k/10);
putchar(k%10+'0');
}
const int mod=998244353;
int n,m;
ll dp[2][250005],f[505][250005],sum[2][250005],sum1[2][250005];
pair<int,int> a[505],b[505];
int main(){
n=read();
m=read();
for(int i=1;i<=n;i++){
a[i].first=read();
a[i].second=read();
}
for(int i=1;i<=m;i++){
b[i].first=read();
b[i].second=read();
}
for(int i=0;i<=500;i++){
for(int j=0;j<=250000;j++){
f[i][j]=1;
}
}
dp[0][0]=f[0][0]=1;
for(int i=1;i<=250000;i++){
}
for(int i=1;i<=n;i++){
// for(int )
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 44ms
memory: 984624kb
input:
2 3 1 2 2 3 1 4 2 2 1 3
output:
result:
wrong answer Answer contains longer sequence [length = 6], but output contains 0 elements