ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#159129 | #228. book | lzoip | 0 | 1ms | 1120kb | C++ | 711b | 2022-09-21 17:19:41 | 2022-09-21 17:19:42 |
answer
#include <bits/stdc++.h>
using namespace std;
const int N=1e6+5;
int n;
long long p,q,x,y;
long long ans=-1;
long long a[N],s[N];
long long r,c,tr;
int main(){
/*
scanf("%d",&n);
scanf("%lld%lld",&p,&q);
scanf("%lld%lld",&x,&y);
char ch=getchar();
while(ch!='-'&&ch!='+') ch=getchar();
for(int i=1;i<=n;i++){
if(ch=='+') a[i]=1;
else a[i]=-1;
s[i]=s[i-1]+a[i];
ch=getchar();
}
for(int k=0;k<n;k++){
if(k>0){
s[(0-k+n)%n+1]=a[(0-k+n)%n+1];
for(int j=2-k;j<=n;j++){
int i=(j-1+n)%n+1;
s[i]+=a[(0-k+n)%n+1];
}
}
long long cnt=k*y;
for(int j=1-k;j<=n;j++){
int i=(j-1+n)%n+1;
}
}
*/
cout<<"3\n";
}
详细
小提示:点击横条可展开更详细的信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 1120kb
input:
100 2 28 9426 9827 ----+--+-++++-+++--+---+++------+---------++----+-++++-+--+++-++++++-+-+--+++--++...
output:
3
result:
wrong answer 1st lines differ - expected: '179094', found: '3'
Test #2:
score: 0
Wrong Answer
time: 0ms
memory: 1116kb
input:
100 6 68 8136 6688 +++-+---+----+--+-++--+---++++++--+-++-++--+--++--+-++---+++-+++---++++-+++-+++++...
output:
3
result:
wrong answer 1st lines differ - expected: '219672', found: '3'
Test #3:
score: 0
Wrong Answer
time: 1ms
memory: 1116kb
input:
100 4 0 7368 5364 -+-++---+--+-+-+-++++++++-+-++++--+-+---++---++--+++----+--+-----------+--+--+++--...
output:
3
result:
wrong answer 1st lines differ - expected: '36840', found: '3'
Test #4:
score: 0
Wrong Answer
time: 0ms
memory: 1116kb
input:
1000 454 0 10 10000000 --+++++-+---++-++-+-++++-+--+---++++++++-+-++-+-+-+--+++--+----+--++++-++---+...
output:
3
result:
wrong answer 1st lines differ - expected: '2150', found: '3'
Test #5:
score: 0
Wrong Answer
time: 0ms
memory: 1116kb
input:
1000 376 1144 440675445 812725011 ++++-+------++---++---+--+++---++++--++--+-++++-+---++++-+++-+-+--...
output:
3
result:
wrong answer 1st lines differ - expected: '158643160200', found: '3'
Test #6:
score: 0
Wrong Answer
time: 0ms
memory: 1120kb
input:
1000 276 18 938498793 701159019 -+++---+++-+---+++---+-+----+++-+-+-++---+--+++++-+---+-++-+----++++...
output:
3
result:
wrong answer 1st lines differ - expected: '95726876886', found: '3'
Test #7:
score: 0
Wrong Answer
time: 0ms
memory: 1116kb
input:
100000 67360 94034 10 10000000 ---+++-++-+++---+-+--+-+------+-+---+----+----+-----+-+--+----+++-+--...
output:
3
result:
wrong answer 1st lines differ - expected: '131900', found: '3'
Test #8:
score: 0
Wrong Answer
time: 0ms
memory: 1120kb
input:
100000 57247 91 752278539 881719015 -+++++--+--++---+-----++-+-+++++-+-+--+-----++--+++++-+--+-+++-+...
output:
3
result:
wrong answer 1st lines differ - expected: '21465515831826', found: '3'
Test #9:
score: 0
Wrong Answer
time: 0ms
memory: 1116kb
input:
1000000 897028 186010 944612613 866641998 +---+-++++--+---+---+----++--+-+---++---+-+++++++--+++-+--...
output:
3
result:
wrong answer 1st lines differ - expected: '335957143489128', found: '3'
Test #10:
score: 0
Wrong Answer
time: 0ms
memory: 1116kb
input:
1000000 524180 1009530 659936979 574325878 ++---++--+-++-+---+---+-++--+-++--+----++---+-++-+-+-++-+...
output:
3
result:
wrong answer 1st lines differ - expected: '159568801900326', found: '3'