QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#83411 | #5413. 同构判定鸡 | zhouhuanyi | 0 | 4ms | 3724kb | C++23 | 713b | 2023-03-01 20:21:15 | 2023-03-01 20:21:18 |
Judging History
answer
#include<iostream>
#include<cstdio>
using namespace std;
int read()
{
char c=0;
int sum=0;
while (c<'0'||c>'9') c=getchar();
while ('0'<=c&&c<='9') sum=sum*10+c-'0',c=getchar();
return sum;
}
int T,n,m,sn,sm,type;
int main()
{
int x,y,cnt;
T=read(),type=read();
while (T--)
{
n=read(),m=read();
for (int i=1;i<=m;++i) x=read(),y=read();
sn=read(),sm=read();
if (type<=2)
{
cnt=0;
for (int i=1;i<=sn;++i)
for (int j=i+1;j<=sn;++j)
if ((j-i)%n!=0)
cnt++;
printf("%d %d\n",sn,cnt);
for (int i=1;i<=sn;++i)
for (int j=i+1;j<=sn;++j)
if ((j-i)%n!=0)
printf("%d %d\n",i,j);
}
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 4ms
memory: 3424kb
input:
10 1 3 3 1 2 1 3 2 3 33 272 3 3 1 2 1 3 2 3 28 196 3 3 1 2 1 3 2 3 92 2116 3 3 1 2 1 3 2 3 29 210 3 3 1 2 1 3 2 3 62 961 3 3 1 2 1 3 2 3 97 2352 3 3 1 2 1 3 2 3 60 900 3 3 1 2 1 3 2 3 70 1225 3 3 1 2 1 3 2 3 67 1122 3 3 1 2 1 3 2 3 67 1122
output:
33 363 1 2 1 3 1 5 1 6 1 8 1 9 1 11 1 12 1 14 1 15 1 17 1 18 1 20 1 21 1 23 1 24 1 26 1 27 1 29 1 30 1 32 1 33 2 3 2 4 2 6 2 7 2 9 2 10 2 12 2 13 2 15 2 16 2 18 2 19 2 21 2 22 2 24 2 25 2 27 2 28 2 30 2 31 2 33 3 4 3 5 3 7 3 8 3 10 3 11 3 13 3 14 3 16 3 17 3 19 3 20 3 22 3 23 3 25 3 26 3 28 3 29 3 3...
result:
wrong answer wrong answer! (test case 1)
Test #2:
score: 0
Wrong Answer
time: 3ms
memory: 3724kb
input:
10 2 5 10 1 2 1 3 1 4 1 5 2 3 2 4 2 5 3 4 3 5 4 5 28 293 8 28 1 2 1 3 1 4 1 5 1 6 1 7 1 8 2 3 2 4 2 5 2 6 2 7 2 8 3 4 3 5 3 6 3 7 3 8 4 5 4 6 4 7 4 8 5 6 5 7 5 8 6 7 6 8 7 8 8 26 4 6 1 2 1 3 1 4 2 3 2 4 3 4 82 2240 3 3 1 2 1 3 2 3 46 528 4 6 1 2 1 3 1 4 2 3 2 4 3 4 42 587 9 36 1 2 1 3 1 4 1 5 1 6 1 ...
output:
28 313 1 2 1 3 1 4 1 5 1 7 1 8 1 9 1 10 1 12 1 13 1 14 1 15 1 17 1 18 1 19 1 20 1 22 1 23 1 24 1 25 1 27 1 28 2 3 2 4 2 5 2 6 2 8 2 9 2 10 2 11 2 13 2 14 2 15 2 16 2 18 2 19 2 20 2 21 2 23 2 24 2 25 2 26 2 28 3 4 3 5 3 6 3 7 3 9 3 10 3 11 3 12 3 14 3 15 3 16 3 17 3 19 3 20 3 21 3 22 3 24 3 25 3 26 3...
result:
wrong answer wrong answer! (test case 1)
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 3340kb
input:
10 3 4 4 1 2 2 3 3 4 4 1 387 774 4 4 1 2 2 3 3 4 4 1 668 1336 4 4 1 2 2 3 3 4 4 1 1403 2806 4 4 1 2 2 3 3 4 4 1 1516 3032 4 4 1 2 2 3 3 4 4 1 1601 3202 4 4 1 2 2 3 3 4 4 1 1649 3298 4 4 1 2 2 3 3 4 4 1 1722 3444 4 4 1 2 2 3 3 4 4 1 1854 3708 4 4 1 2 2 3 3 4 4 1 1926 3852 4 4 1 2 2 3 3 4 4 1 1989 3978
output:
result:
wrong output format Unexpected end of file - int32 expected (test case 1)
Test #4:
score: 0
Wrong Answer
time: 1ms
memory: 3164kb
input:
10 4 4 4 1 2 2 3 3 4 4 1 169 1014 4 4 1 2 2 3 3 4 4 1 529 5819 4 4 1 2 2 3 3 4 4 1 841 11774 4 4 1 2 2 3 3 4 4 1 961 14415 4 4 1 2 2 3 3 4 4 1 1369 24642 4 4 1 2 2 3 3 4 4 1 1681 33620 4 4 1 2 2 3 3 4 4 1 1849 38829 4 4 1 2 2 3 3 4 4 1 361 3249 4 4 1 2 2 3 3 4 4 1 289 2312 4 4 1 2 2 3 3 4 4 1 9 9
output:
result:
wrong output format Unexpected end of file - int32 expected (test case 1)
Test #5:
score: 0
Wrong Answer
time: 1ms
memory: 3220kb
input:
1 5 4 4 1 2 2 3 3 4 4 1 2850 24300
output:
result:
wrong output format Unexpected end of file - int32 expected
Test #6:
score: 0
Wrong Answer
time: 0ms
memory: 3288kb
input:
1 6 6 9 1 4 1 5 1 6 2 4 2 5 2 6 3 4 3 5 3 6 343 2350
output:
result:
wrong output format Unexpected end of file - int32 expected