QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#826387#9844. Marriage IIgyydp123_LIMAC ✓1180ms118472kbC++144.5kb2024-12-22 09:44:442024-12-22 09:44:44

Judging History

你现在查看的是最新测评结果

  • [2024-12-22 09:44:44]
  • 评测
  • 测评结果:AC
  • 用时:1180ms
  • 内存:118472kb
  • [2024-12-22 09:44:44]
  • 提交

answer

#include<bits/stdc++.h>
#define For(i,j,k) for(int i=(j);i<=(k);++i)
#define ForDown(i,j,k) for(int i=(j);i>=(k);--i)
#define Debug(fmt, args...) fprintf(stderr,"(func %s, line #%d): " fmt,__func__,__LINE__,##args),fflush(stderr)
#define debug(fmt, args...) fprintf(stderr,fmt,##args),fflush(stderr)
#define within :
#define LJY main
using namespace std;
typedef long long ll;
const int N=8e5+5,inf=1e9+5;
inline int read(){
  char ch=getchar();int x=0,f=1;
  while(ch<'0'||ch>'9'){if(ch=='-') f=-1;ch=getchar();}
  while(ch>='0'&&ch<='9')
    x=(x<<3)+(x<<1)+(ch^48),ch=getchar();
  return x*f;
}
int n,m,col[N],cnt;
int h[N],ce=1,s,t,cur[N],dep[N];
struct Edge{int v,w,nxt;}e[N];
void addedge(int u,int v,int w){
  e[++ce]={v,w,h[u]};h[u]=ce;
  e[++ce]={u,0,h[v]};h[v]=ce;
}
bool getdep(){
  for(int i=1;i<=t;i++) dep[i]=-1;
  queue<int>q;q.push(s);dep[s]=0;
  while(!q.empty()){
    int x=q.front();q.pop();cur[x]=h[x];
    for(int i=h[x];i;i=e[i].nxt){
      int y=e[i].v,z=e[i].w;
      if(z&&!~dep[y]){dep[y]=dep[x]+1;q.push(y);}
    }
  }return ~dep[t];
}
int getflow(int x,int f){
  if(x==t)return f;int ret=0;
  for(int &i=cur[x];i;i=e[i].nxt){
    int y=e[i].v,z=e[i].w;
    if(z&&dep[y]==dep[x]+1){
      int w=getflow(y,min(f-ret,z));
      e[i].w-=w;e[i^1].w+=w;ret+=w;
      if(ret==f)return ret;
    }
  }return ret;
}
int Dinic(){int ret=0;while(getdep())ret+=getflow(s,inf);return ret;}
struct VecArray{
  int h[N];int ce;struct Edge{int v,nxt;}e[N];
  VecArray(){memset(h,0,sizeof(h));ce=0;}
  void addedge(int u,int v){e[++ce]={v,h[u]};h[u]=ce;}
  void clear(){memset(h,0,sizeof(h));ce=0;}
}G,F,vec,T;
int f[N],dfn[N],idfn[N],cdfn;
int fa[N],Mn[N],sdom[N],idom[N];
ll ans;int siz[N];
void dfs(int u){
  idfn[dfn[u]=++cdfn]=u;
  for(int i=G.h[u];i;i=G.e[i].nxt){
    int v=G.e[i].v;
    if(!dfn[v]) f[v]=u,dfs(v);
  }
}
int find(int x){
  if(fa[x]==x) return x;
  int tmp=find(fa[x]);
  if(dfn[sdom[Mn[fa[x]]]]<dfn[sdom[Mn[x]]]) Mn[x]=Mn[fa[x]];
  return fa[x]=tmp;
}
void build(int s){
  For(i,1,cnt) fa[i]=Mn[i]=sdom[i]=i,idom[i]=dfn[i]=0;
  vec.clear();T.clear();cdfn=0;dfs(s);
  ForDown(i,cdfn,1){
    int u=idfn[i];
    for(int i=vec.h[u];i;i=vec.e[i].nxt){
      int v=vec.e[i].v;find(v);
      if(sdom[Mn[v]]==u) idom[v]=u;
      else idom[v]=Mn[v];
    }if(i==1) continue;
    for(int i=F.h[u];i;i=F.e[i].nxt){
      int v=F.e[i].v;
      if(dfn[v]){
        if(dfn[v]<dfn[sdom[u]]) sdom[u]=v;
        else if(dfn[v]>dfn[u]){
          find(v);
          if(dfn[sdom[Mn[v]]]<dfn[sdom[u]])
            sdom[u]=sdom[Mn[v]];
        }
      }
    }vec.addedge(sdom[u],u);fa[u]=f[u];
  }For(i,2,cdfn) if(idom[idfn[i]]!=sdom[idfn[i]])
    idom[idfn[i]]=idom[idom[idfn[i]]];
  For(i,1,cdfn) T.addedge(idom[idfn[i]],idfn[i]);
}
void getans(int u,bool op,bool flg=1){
  if((u>n&&u<=2*n)||u>2*n+2) flg=0;
  siz[u]=(u>n&&u<=2*n&&col[u-n]==op);
  for(int i=T.h[u];i;i=T.e[i].nxt){
    int v=T.e[i].v;
    getans(v,op,flg);
    if(flg) ans+=(ll)siz[u]*siz[v];
    siz[u]+=siz[v];
  }
}
void color(int u,int c){
  col[u]=c;
  for(int i=G.h[u];i;i=G.e[i].nxt){
    int v=G.e[i].v; if(col[v]==-1) color(v,c^1);}
}
signed LJY(){
  n=read();m=read();
  s=2*n+1,t=s+1;
  For(i,1,m){
    int u=read(),v=read();
    G.addedge(u,v);G.addedge(v,u);
  }memset(col,-1,sizeof(col));For(i,1,n) if(col[i]==-1) color(i,0);
  cnt=2*n+2;
  For(u,1,n) if(col[u]) for(int i=G.h[u];i;i=G.e[i].nxt) addedge(u,G.e[i].v,1);
  For(i,1,n){
    if(col[i]) addedge(s,i,1);
    else addedge(i,t,1);
  }Dinic();G.clear();
  for(int i=h[s];i;i=e[i].nxt){
    int v=e[i].v;
    if(e[i].w){
      G.addedge(s,v+n),G.addedge(v+n,v);
      F.addedge(v+n,s);F.addedge(v,v+n);
    }else{
      F.addedge(s,v+n),F.addedge(v+n,v);
      G.addedge(v+n,s);G.addedge(v,v+n);
    }
  }for(int i=h[t];i;i=e[i].nxt){
    int v=e[i].v;
    if(e[i].w){
      G.addedge(t,v+n),G.addedge(v+n,v);
      F.addedge(v+n,t);F.addedge(v,v+n);
    }else{
      F.addedge(t,v+n),F.addedge(v+n,v);
      G.addedge(v+n,t);G.addedge(v,v+n);
    }
  }
  For(u,1,n) for(int i=h[u];i;i=e[i].nxt) if(e[i].w&&e[i].v<=n){
    G.addedge(u,++cnt);G.addedge(cnt,e[i].v);
    F.addedge(e[i].v,cnt);F.addedge(cnt,u);
  }build(s);
  int cnt1=0,cnt2=0;
  For(i,1,n) if(col[i]&&dfn[i+n]) cnt1++;
  getans(s,1);
  For(i,1,cnt) swap(F.h[i],G.h[i]);
  int p=max(F.ce,G.ce);For(i,1,p) swap(F.e[i],G.e[i]);
  swap(F.ce,G.ce);build(t);
  For(i,1,n) if(!col[i]&&dfn[i+n]) cnt2++;
  getans(t,0);
  printf("%lld\n",(ll)cnt1*cnt2+ans);
  return 0;
}

这程序好像有点Bug,我给组数据试试?

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 50500kb

input:

6 4
1 2
1 3
4 5
4 6

output:

4

result:

ok single line: '4'

Test #2:

score: 0
Accepted
time: 0ms
memory: 52824kb

input:

6 6
1 2
1 3
1 4
1 5
2 6
3 6

output:

5

result:

ok single line: '5'

Test #3:

score: 0
Accepted
time: 0ms
memory: 51588kb

input:

5 4
1 2
2 3
3 4
4 5

output:

0

result:

ok single line: '0'

Test #4:

score: 0
Accepted
time: 8ms
memory: 53152kb

input:

2 0

output:

1

result:

ok single line: '1'

Test #5:

score: 0
Accepted
time: 3ms
memory: 49016kb

input:

2 1
2 1

output:

0

result:

ok single line: '0'

Test #6:

score: 0
Accepted
time: 19ms
memory: 80152kb

input:

200000 0

output:

19999900000

result:

ok single line: '19999900000'

Test #7:

score: 0
Accepted
time: 26ms
memory: 76404kb

input:

199999 0

output:

19999700001

result:

ok single line: '19999700001'

Test #8:

score: 0
Accepted
time: 0ms
memory: 49452kb

input:

20 31
7 10
13 20
6 10
8 12
13 10
10 3
20 1
7 5
20 4
16 20
2 5
19 20
9 20
18 14
17 12
5 6
1 10
20 3
12 4
17 18
10 17
20 17
14 10
11 10
1 18
8 10
19 18
11 20
5 17
4 18
11 12

output:

105

result:

ok single line: '105'

Test #9:

score: 0
Accepted
time: 0ms
memory: 50948kb

input:

200 392
129 123
95 105
56 135
31 195
46 122
162 170
193 152
49 89
180 169
178 56
99 123
178 42
35 142
1 29
68 60
87 47
33 130
74 82
148 167
188 23
134 91
62 24
175 50
108 8
151 60
143 81
66 54
123 106
12 28
173 121
170 192
12 102
179 169
117 106
29 193
130 31
107 100
17 185
106 170
65 43
156 23
90 3...

output:

5035

result:

ok single line: '5035'

Test #10:

score: 0
Accepted
time: 3ms
memory: 52596kb

input:

2000 3991
55 814
126 261
373 326
861 1859
1142 971
973 1697
529 395
150 1744
1079 1716
340 109
607 836
1012 30
1890 251
493 296
1949 1527
1509 1987
38 1493
241 1709
637 1201
494 619
540 1122
1736 1091
1424 1588
1634 731
1110 181
801 344
1459 449
1682 515
1574 1801
1570 1372
848 1398
1007 605
836 184...

output:

457247

result:

ok single line: '457247'

Test #11:

score: 0
Accepted
time: 39ms
memory: 64312kb

input:

20000 39993
1989 17534
6064 9408
11554 10781
18431 2791
5951 18491
3900 3310
6698 18049
19616 19503
17581 2974
17529 17246
9457 17212
17594 5573
4078 17183
8989 15777
19002 1006
1305 11978
19419 19529
11236 18758
5421 13762
15358 11766
5904 17900
13694 11362
17284 13132
1159 5975
17905 3904
4171 425...

output:

44520804

result:

ok single line: '44520804'

Test #12:

score: 0
Accepted
time: 309ms
memory: 87996kb

input:

100000 199992
8880 49196
90956 38330
19064 86101
75966 80815
39354 96557
92836 60990
52377 95438
21032 52666
60151 95543
94080 49473
70 97711
42997 25646
62710 95108
89991 50148
54911 33523
33767 53310
9086 43935
5272 91643
82647 81142
2956 83921
10123 28650
28664 66790
69072 7901
99596 25422
51625 ...

output:

1078531098

result:

ok single line: '1078531098'

Test #13:

score: 0
Accepted
time: 453ms
memory: 87684kb

input:

100000 199989
10404 52518
15568 59234
49473 98323
86439 91098
13268 74353
77501 9114
94920 30818
77001 58654
73316 37876
63137 16520
82598 97778
53456 31789
6058 19249
31719 70113
49400 23634
95608 86047
59149 17335
45907 98931
51474 37036
826 32312
41577 39081
50077 5218
94072 15691
18032 31061
258...

output:

1058053594

result:

ok single line: '1058053594'

Test #14:

score: 0
Accepted
time: 355ms
memory: 87820kb

input:

100000 199990
87515 75888
23140 5157
50417 3631
85515 92268
37974 86134
36985 51059
55503 97392
92788 3188
51096 71088
76528 64594
19036 41049
13201 32333
19495 89313
72675 99536
27584 51886
97874 61011
55090 44310
52627 81583
75463 58497
92365 88642
2586 91604
83000 47136
66635 32918
32412 87928
27...

output:

1071297634

result:

ok single line: '1071297634'

Test #15:

score: 0
Accepted
time: 286ms
memory: 87988kb

input:

100000 199998
49819 46498
35719 81597
11138 34638
110 28466
25372 15925
8999 39490
62210 42863
75641 30323
48026 2458
64673 79299
30997 23491
7961 97980
63489 44533
74311 49532
68372 21504
88152 36014
48841 13011
82567 84155
46617 95329
49354 91174
83494 80381
79319 68797
56757 14498
15835 7769
7763...

output:

1069215717

result:

ok single line: '1069215717'

Test #16:

score: 0
Accepted
time: 424ms
memory: 85632kb

input:

100000 199985
35633 67519
7958 88089
66238 62916
3627 94097
9699 27050
61221 79456
44541 94339
16569 46892
73446 27128
60242 50117
16223 35271
67476 25688
18506 73926
16466 34888
62450 65821
4779 10299
37664 87578
49208 35312
92210 68507
50348 34660
9831 69686
12623 44651
47829 17256
33246 72038
139...

output:

1062474381

result:

ok single line: '1062474381'

Test #17:

score: 0
Accepted
time: 401ms
memory: 84624kb

input:

200000 199998
18841 137584
48783 13586
94327 105545
53934 83851
140894 48308
34128 109894
125653 132217
128285 39260
13073 59146
188764 2871
127046 16762
103003 50009
74619 115022
114908 133557
100302 41967
44218 58765
33846 71262
119455 171497
81077 197183
96625 175324
152448 28098
169960 53492
441...

output:

3657778277

result:

ok single line: '3657778277'

Test #18:

score: 0
Accepted
time: 355ms
memory: 82496kb

input:

200000 200000
153484 79637
31553 75085
197147 17362
134847 54137
169283 74405
124167 178455
35157 12946
3816 172314
81045 11132
84219 29951
114152 44018
157477 173914
150774 107098
93290 3450
154453 113217
138934 67180
51293 103064
195352 160832
28970 175591
78177 80213
194584 96006
80340 159251
961...

output:

3606310883

result:

ok single line: '3606310883'

Test #19:

score: 0
Accepted
time: 384ms
memory: 86752kb

input:

200000 199997
193247 136193
75260 64388
119811 188562
17886 191296
129292 1848
61926 95933
88249 17211
66004 150400
60479 46804
86496 51295
170405 171816
133531 91112
84627 59257
44359 75744
95192 77235
32161 37384
166020 83602
177359 90628
122788 68469
120643 16540
196487 16990
108982 107725
92094 ...

output:

3690365152

result:

ok single line: '3690365152'

Test #20:

score: 0
Accepted
time: 371ms
memory: 86748kb

input:

200000 199996
79283 78264
84312 35758
184463 24068
121050 195497
194811 15958
162923 192756
94121 190043
109515 52677
118010 96722
181008 94890
90281 52349
56270 92645
150342 85480
181762 111039
62666 124439
168820 134974
145657 180618
58291 74010
23272 64192
134446 29276
5700 85861
178715 118033
10...

output:

3610985309

result:

ok single line: '3610985309'

Test #21:

score: 0
Accepted
time: 437ms
memory: 86636kb

input:

200000 199998
125162 3093
21696 193483
194437 148101
79442 120237
115459 10037
139810 148825
25897 102794
175671 105412
185885 145512
84443 155176
150602 48700
160528 186264
139357 129961
46772 44421
57963 38849
52321 22883
1964 76943
95565 177003
109617 94996
7721 17584
26525 192691
130758 136810
1...

output:

3665581690

result:

ok single line: '3665581690'

Test #22:

score: 0
Accepted
time: 387ms
memory: 82676kb

input:

200000 199999
177059 103182
192004 37257
174167 132977
130953 95655
42247 152444
151448 137926
172255 34352
27485 56150
10386 166494
134619 28044
138710 41753
151024 56595
150685 108979
182989 2232
136250 106661
134654 2685
177714 123612
163821 188553
11278 109414
90786 153089
114837 38747
139864 15...

output:

3595961219

result:

ok single line: '3595961219'

Test #23:

score: 0
Accepted
time: 380ms
memory: 87652kb

input:

100000 199991
2479 26200
49028 66764
4662 16435
7549 88980
44096 51951
38495 45859
10521 51658
15337 8869
77369 2504
96182 81568
24434 73184
78604 3785
28513 24867
77242 27620
85897 78591
34469 10403
28338 90372
88927 17548
28236 59862
89293 74392
91964 64990
52593 13955
43618 4968
25445 61053
10937...

output:

1059388057

result:

ok single line: '1059388057'

Test #24:

score: 0
Accepted
time: 144ms
memory: 83776kb

input:

50000 199975
23239 26005
11895 332
13681 41413
33305 46376
26275 18009
24372 31585
45642 18341
45046 6201
20776 22927
12928 20496
33684 15100
43772 7283
32361 40745
3119 27883
5489 33969
39820 15710
49547 19415
9231 43325
23027 17905
31242 24090
29124 16703
41677 26552
46419 9001
19479 27160
44344 1...

output:

311238504

result:

ok single line: '311238504'

Test #25:

score: 0
Accepted
time: 94ms
memory: 75540kb

input:

25000 199879
9150 23971
21097 22341
2322 9712
17394 12627
1699 7313
7728 19238
19749 13740
13991 14830
5637 2390
12946 14682
12614 23464
22492 22945
14827 20739
8319 13887
13974 21385
24872 4682
2807 3276
7334 2498
1122 6960
914 9996
17710 6707
1828 24237
24487 3920
16757 12022
18016 3075
22017 1617...

output:

79247755

result:

ok single line: '79247755'

Test #26:

score: 0
Accepted
time: 76ms
memory: 76340kb

input:

12500 199460
5482 4066
6639 52
4898 12098
2837 10374
760 11978
8930 12169
7251 7799
4107 10690
11677 3699
9121 5037
10649 11516
11728 7083
9044 11955
1746 222
2887 11583
8840 8928
5459 11028
4916 249
4842 12016
431 4850
11411 6064
49 1606
895 1961
6335 5775
5151 3260
12111 8689
385 3627
6385 7180
19...

output:

19785195

result:

ok single line: '19785195'

Test #27:

score: 0
Accepted
time: 83ms
memory: 70220kb

input:

6250 197956
3999 907
5621 326
2550 4890
3425 4132
5313 4221
2813 1819
560 1749
3989 393
669 2210
3373 4237
4759 3601
5791 2728
2830 3013
5365 5263
5808 1324
377 2115
2463 2712
896 3176
17 787
3954 4747
4756 598
4687 2056
4221 5247
3832 2778
3333 3814
1743 2570
2829 2337
492 3662
350 5729
1897 3530
5...

output:

5067336

result:

ok single line: '5067336'

Test #28:

score: 0
Accepted
time: 53ms
memory: 74264kb

input:

3125 192050
2990 904
1988 11
2568 238
3105 470
1245 1436
2877 2721
1498 980
2750 69
638 693
2210 1184
806 1094
2543 1160
1517 2536
661 2040
1822 2069
2126 26
434 537
619 2942
2446 616
688 308
861 1129
733 2504
1598 1391
2654 1914
2790 163
1137 2572
1452 1371
2789 1084
1638 2844
2761 2056
2648 1012
1...

output:

1288815

result:

ok single line: '1288815'

Test #29:

score: 0
Accepted
time: 56ms
memory: 72116kb

input:

1562 170436
299 120
195 32
1379 1299
470 649
1463 287
1430 403
215 1028
718 44
691 632
1245 1090
1163 238
680 852
1486 948
400 1332
674 29
974 532
244 1489
816 544
923 1101
273 666
378 249
749 371
1374 451
1271 207
151 1413
88 529
714 646
1145 178
82 1176
609 1005
819 1441
559 284
1028 876
1455 1084...

output:

312445

result:

ok single line: '312445'

Test #30:

score: 0
Accepted
time: 27ms
memory: 59544kb

input:

781 111257
115 496
426 368
673 76
665 77
309 146
696 644
489 603
137 467
289 696
102 233
407 508
541 778
310 754
377 761
60 602
775 43
464 569
545 688
678 386
588 586
95 310
183 335
727 541
419 547
685 34
154 76
753 43
361 629
517 63
737 638
690 312
432 30
565 540
489 558
496 777
389 592
693 674
501...

output:

0

result:

ok single line: '0'

Test #31:

score: 0
Accepted
time: 7ms
memory: 53912kb

input:

390 37779
310 34
249 153
281 218
288 175
22 166
307 107
259 257
13 226
112 34
383 88
309 374
235 58
60 270
261 169
39 173
206 351
59 242
67 208
285 69
102 35
271 76
319 153
354 27
10 168
244 158
259 381
341 382
327 70
244 168
74 215
34 313
109 359
33 270
177 45
165 280
271 150
51 157
292 73
358 388
...

output:

19900

result:

ok single line: '19900'

Test #32:

score: 0
Accepted
time: 176ms
memory: 77676kb

input:

100000 199993
28962 28961
10957 20738
68237 68238
41420 20547
49699 39106
72184 72185
32885 32886
35407 98678
22110 68605
86692 86693
40854 40853
37672 37671
84196 27459
96188 51515
20632 90239
27703 27704
63217 28438
63056 63057
31253 49164
22153 28424
11631 81012
54452 54453
29548 4977
30069 30070...

output:

0

result:

ok single line: '0'

Test #33:

score: 0
Accepted
time: 202ms
memory: 76212kb

input:

100000 199995
61784 58597
59634 59633
88955 80800
47190 47189
41390 41389
51551 39982
17942 80655
84386 44407
56413 56414
16979 16980
5252 5253
41846 41847
98237 64872
46604 61351
55891 48198
21613 69282
39852 3263
33663 47716
79862 79861
90546 53949
11857 11856
10257 10258
54120 95679
50985 50984
6...

output:

0

result:

ok single line: '0'

Test #34:

score: 0
Accepted
time: 64ms
memory: 100704kb

input:

200000 199998
76400 76399
100950 100951
94911 94912
35221 35222
20729 20728
27482 27483
184812 184813
138157 138156
19183 19184
44822 44821
45846 45845
31694 31695
78813 78814
26197 26196
181418 181419
69512 69513
21444 21443
28329 28330
166007 166008
157009 157008
115820 115819
40522 40521
32437 32...

output:

2500050000

result:

ok single line: '2500050000'

Test #35:

score: 0
Accepted
time: 62ms
memory: 109884kb

input:

200000 199998
63869 63868
198895 198896
65885 65886
141207 141206
164828 164827
197304 197303
60412 60411
21398 21399
134948 134949
170319 170318
133634 133635
120217 120216
193198 193197
108766 108767
127120 127119
49491 49492
107219 107220
145347 145348
35335 35334
118680 118681
113555 113556
1657...

output:

1875025000

result:

ok single line: '1875025000'

Test #36:

score: 0
Accepted
time: 64ms
memory: 118472kb

input:

200000 199998
186310 186311
81483 81484
67862 67861
142003 142004
5324 5323
142968 142969
118152 118151
120366 120365
99833 99834
193794 193793
140989 140990
87839 87840
166835 166836
138640 138641
85391 85392
136189 136188
193588 193589
22475 22474
88752 88753
45036 45035
10308 10307
155478 155479
...

output:

475005000

result:

ok single line: '475005000'

Test #37:

score: 0
Accepted
time: 0ms
memory: 50576kb

input:

3 0

output:

3

result:

ok single line: '3'

Test #38:

score: 0
Accepted
time: 0ms
memory: 50960kb

input:

3 1
3 2

output:

0

result:

ok single line: '0'

Test #39:

score: 0
Accepted
time: 0ms
memory: 52748kb

input:

3 2
1 3
2 3

output:

0

result:

ok single line: '0'

Test #40:

score: 0
Accepted
time: 71ms
memory: 116148kb

input:

200000 199998
100970 100969
99721 99720
162315 162314
52367 52368
188583 188582
168343 168344
111287 111286
177418 177419
199982 199983
100508 100509
16082 16081
45949 45948
34538 34539
65494 65495
162100 162099
53120 53121
160509 160508
92313 92314
154807 154806
35475 35474
5208 5209
173408 173409
...

output:

100000

result:

ok single line: '100000'

Test #41:

score: 0
Accepted
time: 1180ms
memory: 87048kb

input:

101404 199999
39718 39717
75940 75939
70699 70700
65121 65122
77428 77427
47275 47590
92900 92899
5945 5630
64316 64315
67837 68152
50724 50409
44575 44260
45977 45978
61403 61402
52388 52387
21411 21410
28905 28904
16008 15693
26697 27012
58327 58012
66592 66591
43487 43172
24889 24890
33477 33478
...

output:

1233678399

result:

ok single line: '1233678399'

Test #42:

score: 0
Accepted
time: 640ms
memory: 89464kb

input:

99725 198320
8786 8787
48201 48200
56221 56222
97219 96904
60988 61303
66599 66598
13240 13241
13020 13019
84966 84965
10689 10690
3308 2993
18149 18150
83553 83868
35347 35662
5876 5877
1618 1933
91864 91549
87389 87388
69950 69635
70185 69870
28205 28204
29385 29070
95323 95008
32307 32308
8595 89...

output:

1232188876

result:

ok single line: '1232188876'

Test #43:

score: 0
Accepted
time: 450ms
memory: 86624kb

input:

99325 197920
21426 21741
3754 3753
86357 86358
38053 38054
59826 59827
23586 23901
2096 2095
19632 19317
43796 43795
28570 28569
29046 29047
57526 57525
60466 60465
98885 98884
76876 76877
88782 88783
66231 66232
63514 63199
74941 74626
73813 73498
22808 23123
83076 83391
95633 95948
33304 33305
244...

output:

1231245872

result:

ok single line: '1231245872'

Test #44:

score: 0
Accepted
time: 252ms
memory: 88392kb

input:

99245 197840
11285 11284
76963 77278
19873 20188
3851 3536
27190 27191
43580 43265
37975 37976
71224 71223
73958 73643
45910 46225
18945 18946
39222 39223
38319 38004
1033 718
75334 75333
25 340
2879 3194
59392 59391
51108 51107
88930 88615
96934 96619
56826 56827
54054 54053
64787 65102
93607 93608...

output:

1230948147

result:

ok single line: '1230948147'

Test #45:

score: 0
Accepted
time: 223ms
memory: 74440kb

input:

99230 197825
90389 90390
31467 31466
78771 78772
57462 57777
98252 97937
48805 48806
53163 53478
88543 88542
77708 77707
33088 33087
40944 40945
57531 57216
27992 27991
24534 24219
78900 79215
91732 91417
4247 3932
1143 1142
30633 30634
36892 37207
67061 67060
84707 84708
21553 21238
22197 21882
896...

output:

0

result:

ok single line: '0'

Test #46:

score: 0
Accepted
time: 354ms
memory: 81128kb

input:

110600 200000
38723 38724
29246 29245
44523 44823
55797 56097
12574 12874
21684 21384
27114 27414
46417 46418
38464 38463
15066 15065
64447 64147
92347 67492
34848 34847
58867 58567
2681 2381
45843 46143
60824 60823
42948 42947
80084 80384
46470 46770
25410 90632
25773 25772
8998 8997
64390 64389
16...

output:

880310112

result:

ok single line: '880310112'

Test #47:

score: 0
Accepted
time: 156ms
memory: 92756kb

input:

133335 199999
45512 45513
35340 102006
92577 92576
107620 107619
111013 111012
126239 126240
114273 114274
1446 68112
69919 3253
12361 79027
5796 5795
53013 53012
16980 83646
65632 65631
45332 45333
88421 88422
15960 82626
75673 75674
122924 122925
92766 92765
34892 101558
74075 7409
2095 2094
12138...

output:

0

result:

ok single line: '0'

Test #48:

score: 0
Accepted
time: 245ms
memory: 84092kb

input:

140002 200000
129855 22889
69626 137435
6819 6820
82254 82255
59321 119321
8054 8053
7633 124827
48592 48591
37120 37121
28096 88096
96568 36568
24215 24214
91608 31608
100358 100357
26050 26049
57593 57594
102861 102860
27211 27210
73623 73622
64622 64621
24636 84636
42778 137112
23813 23812
99910 ...

output:

1253096361

result:

ok single line: '1253096361'

Test #49:

score: 0
Accepted
time: 159ms
memory: 84804kb

input:

199998 199997
25763 25762
74580 74581
16980 16981
159997 67181
82829 82830
110923 7805
2349 2350
50834 107188
94204 94203
1605 1604
123545 86757
15450 15451
4507 148897
150 125533
126842 90291
94918 94919
53994 53993
10870 146628
75303 75304
35411 175211
58702 148334
15520 15521
89749 139545
99705 1...

output:

5001717348

result:

ok single line: '5001717348'

Test #50:

score: 0
Accepted
time: 60ms
memory: 102308kb

input:

200000 199999
100000 101577
68748 68749
78309 78310
100000 124661
135548 100000
136241 100000
43715 43714
38554 38553
5308 5307
37827 37828
100000 110120
81234 81235
29638 29639
196235 100000
181413 100000
18895 18896
76949 76950
40685 40684
24439 24438
100000 191041
161877 100000
14570 14571
100000...

output:

9999950000

result:

ok single line: '9999950000'

Test #51:

score: 0
Accepted
time: 43ms
memory: 87212kb

input:

200000 199999
100001 112116
76561 76562
47421 47420
100001 154396
1841 1840
125547 100001
47922 47921
52418 52417
67217 67218
134267 100001
100001 159824
18102 18101
98347 98346
100001 197870
184152 100001
73132 73133
126442 100001
27084 27083
67099 67100
28540 28539
6550 6551
99629 99628
100001 150...

output:

4999850001

result:

ok single line: '4999850001'

Test #52:

score: 0
Accepted
time: 46ms
memory: 85380kb

input:

200000 199999
88042 88041
33391 33392
14322 14321
18339 18338
38667 38668
52916 52917
125761 125760
146629 146630
125282 125281
95936 95937
124244 124243
197723 190001
95761 95760
132100 132101
169216 169215
68642 68641
73745 73744
52303 52302
51232 51233
115770 115769
32856 32857
35638 35637
147462...

output:

49985001

result:

ok single line: '49985001'

Test #53:

score: 0
Accepted
time: 52ms
memory: 114468kb

input:

200000 199999
168761 168762
18150 18149
72377 72376
186499 186500
53606 53605
9153 9152
63707 63708
3135 3136
142778 142779
193153 190000
34211 34210
105111 105112
28736 28737
19936 19937
4423 4422
21022 21021
55500 55501
103100 103101
129613 129614
39102 39103
43019 43020
48013 48014
11487 11488
19...

output:

999995000

result:

ok single line: '999995000'

Test #54:

score: 0
Accepted
time: 79ms
memory: 88264kb

input:

199997 199996
199997 153833
199997 4261
199997 71943
10724 199997
199997 154076
199997 176996
199997 126855
199997 45205
199997 51778
199997 70515
134602 199997
92287 199997
199997 156914
165131 199997
43993 199997
25770 199997
199997 173634
7165 199997
199997 104283
199997 17512
199997 177618
19999...

output:

19999100010

result:

ok single line: '19999100010'

Test #55:

score: 0
Accepted
time: 0ms
memory: 50816kb

input:

6 5
1 2
1 3
1 4
1 5
2 6

output:

3

result:

ok single line: '3'

Test #56:

score: 0
Accepted
time: 0ms
memory: 50356kb

input:

8 7
1 6
1 7
1 8
1 2
2 3
2 4
2 5

output:

15

result:

ok single line: '15'

Test #57:

score: 0
Accepted
time: 0ms
memory: 51208kb

input:

6 5
1 2
2 3
2 4
1 5
1 6

output:

4

result:

ok single line: '4'

Test #58:

score: 0
Accepted
time: 8ms
memory: 51612kb

input:

18 25
1 2
2 3
4 5
5 6
6 10
10 11
11 12
7 8
8 9
13 14
14 15
16 17
17 18
1 4
2 5
3 6
4 7
5 8
6 9
10 13
11 14
12 15
13 16
14 17
15 18

output:

35

result:

ok single line: '35'

Test #59:

score: 0
Accepted
time: 224ms
memory: 83604kb

input:

99458 198025
27932 28155
22213 21990
40152 40153
24576 24799
12312 12089
13247 13248
90319 90318
27682 27681
34680 34679
3062 3061
71784 71785
28776 28999
77099 77322
91887 91664
43539 43538
72191 72190
83856 83857
125 124
44668 44445
50305 50306
97893 98116
1140 1141
7640 7641
39466 39243
31540 315...

output:

618268225

result:

ok single line: '618268225'

Test #60:

score: 0
Accepted
time: 252ms
memory: 87700kb

input:

99458 198025
59049 59050
99206 98983
60870 60647
14267 14268
85366 85367
39505 39728
64037 64038
79010 79009
86377 86600
23944 24167
33907 33906
58835 58612
76831 76830
9977 9978
45512 45735
46202 45979
28140 28141
12684 12685
63247 63024
41916 41915
96362 96139
98615 98616
26200 26199
96933 96710
6...

output:

927389905

result:

ok single line: '927389905'

Test #61:

score: 0
Accepted
time: 277ms
memory: 85760kb

input:

99458 198025
73744 73745
31581 31580
33152 33151
32543 32766
45895 45672
97957 97734
20085 19862
85173 85172
18234 18235
6414 6415
86480 86703
25246 25247
50905 50904
98310 98309
51642 51419
55654 55877
51395 51394
98387 98610
66313 66314
58973 58750
42659 42882
55575 55574
27555 27778
25859 26082
5...

output:

618268225

result:

ok single line: '618268225'

Test #62:

score: 0
Accepted
time: 289ms
memory: 87248kb

input:

99458 198025
46066 45843
23626 23627
82032 81809
84658 84659
36381 36380
60544 60543
77339 77340
87086 87309
39203 39426
46261 46484
477 476
92974 92751
28661 28662
63912 63689
42929 42706
98341 98118
58269 58270
2235 2458
18624 18847
26497 26496
26678 26677
63646 63869
15204 15427
36818 37041
81845...

output:

927389905

result:

ok single line: '927389905'

Test #63:

score: 0
Accepted
time: 308ms
memory: 83732kb

input:

99458 198025
56091 56314
20836 20835
96077 96078
84560 84561
16592 16369
7785 7562
84004 84005
58004 58003
43808 43585
93380 93381
75726 75503
79998 79997
5081 5080
41857 41634
24326 24327
62815 62816
44555 44554
59640 59639
13613 13836
54161 54384
71400 71623
15960 15959
59748 59971
32033 32034
443...

output:

927389905

result:

ok single line: '927389905'

Test #64:

score: 0
Accepted
time: 304ms
memory: 83832kb

input:

99458 198025
8747 8970
13069 13068
4715 4716
59982 59983
3197 3198
6770 6547
56162 56385
29493 29494
23591 23592
9580 9803
68863 69086
98414 98413
72899 72900
61386 61387
6050 6049
68603 68826
9241 9464
27892 27893
57774 57551
57661 57662
15562 15339
78649 78426
90794 91017
66142 66141
38848 38849
2...

output:

618268225

result:

ok single line: '618268225'

Test #65:

score: 0
Accepted
time: 251ms
memory: 88584kb

input:

99458 198025
39079 39302
80509 80508
62313 62536
61685 61684
67173 67174
67435 67436
81019 81018
1323 1546
64861 64638
52365 52588
77831 77832
13994 14217
31591 31590
84264 84487
89538 89539
7871 7870
75056 75055
77013 77014
16228 16005
23022 23023
72856 72857
46405 46182
52275 52274
71028 71027
519...

output:

927389905

result:

ok single line: '927389905'

Test #66:

score: 0
Accepted
time: 231ms
memory: 87480kb

input:

99458 198025
55735 55734
43286 43287
1545 1322
87058 87059
78162 78385
85629 85852
45535 45312
58672 58895
13325 13548
53170 53393
30485 30708
78855 78856
23899 23676
22357 22580
44217 44440
55452 55229
56446 56445
8749 8748
41436 41435
9287 9288
79789 79790
28853 28630
57752 57975
51922 51921
87230...

output:

927389905

result:

ok single line: '927389905'

Test #67:

score: 0
Accepted
time: 102ms
memory: 79072kb

input:

19999 199813
7791 8552
2567 14949
9553 4238
19374 17809
5046 19416
9535 15428
18270 11564
11053 12766
5742 16348
15018 11457
19570 6643
18195 13326
3825 17353
12379 1522
5145 8123
17747 14293
1251 13823
11074 10868
3930 12803
18241 5100
18975 6740
135 455
15543 9110
18019 9582
1244 15648
2822 18944
...

output:

50899005

result:

ok single line: '50899005'

Test #68:

score: 0
Accepted
time: 82ms
memory: 77312kb

input:

19999 199810
4086 4482
7588 5310
8385 7416
9573 9821
18263 1291
5791 16111
4546 1586
12758 12304
4282 598
13037 5206
17983 100
10804 6392
1605 9763
16245 7838
13026 18459
16689 16279
8084 7728
3331 11729
7927 19210
3297 8287
10651 12699
14479 10263
13070 12695
15504 3837
377 1549
9696 17105
14711 11...

output:

50095045

result:

ok single line: '50095045'

Test #69:

score: 0
Accepted
time: 93ms
memory: 77436kb

input:

19999 199787
6704 6707
6425 18624
8428 5859
5547 12996
5078 1824
18136 3653
2214 9046
7502 18152
4364 9815
6728 6730
10399 5525
412 2514
7953 2502
19088 19476
15549 19245
18424 18423
8577 15195
17152 17663
12202 2470
14290 9095
3145 13386
18005 13087
5107 18836
13745 11676
414 12888
16553 16410
1398...

output:

50195190

result:

ok single line: '50195190'

Test #70:

score: 0
Accepted
time: 130ms
memory: 83624kb

input:

49999 199962
28075 20614
2326 33718
31783 3403
9496 33149
29736 29983
30461 39141
28450 45455
37760 33134
3258 6404
43952 1298
691 21356
18467 38909
37620 14212
42504 9811
48201 38349
38577 38922
43260 43714
31015 46574
17591 38555
9939 6856
37298 15934
6492 19493
10569 3009
39596 25356
8804 27160
1...

output:

313037541

result:

ok single line: '313037541'

Test #71:

score: 0
Accepted
time: 154ms
memory: 85756kb

input:

49999 199973
5496 44245
10442 24107
13737 49177
28086 13088
21285 49742
41169 40680
18677 18910
48455 16103
30854 31198
24907 15976
26146 20382
49291 6172
24766 16912
4523 27812
17063 17459
12630 14972
9862 42472
48394 48139
2795 3295
49074 49465
24250 32623
6039 29574
48255 44076
17143 17095
6645 2...

output:

312537336

result:

ok single line: '312537336'

Test #72:

score: 0
Accepted
time: 181ms
memory: 79448kb

input:

49999 199966
45016 21428
6759 15751
36200 27704
13047 39890
48364 48359
24674 24678
18809 13393
33346 33345
37823 21495
44561 44557
27941 27945
42267 45406
26566 46788
2636 36944
2702 2706
29003 4690
18746 22754
40512 40517
50 15110
37891 10020
10291 10286
19714 10583
46357 46354
30734 30733
37019 3...

output:

312887469

result:

ok single line: '312887469'

Test #73:

score: 0
Accepted
time: 346ms
memory: 83596kb

input:

99999 199991
87818 78979
93599 69395
43468 45667
28367 42534
35204 32503
65011 69045
24241 47591
66805 75492
19584 18725
6582 19426
57603 35525
5801 63348
57099 16785
93446 74543
61405 14233
83566 77778
32271 79729
80945 42596
29792 80997
6155 6944
2633 14888
720 2102
90653 66391
5506 24818
20090 54...

output:

1011152781

result:

ok single line: '1011152781'

Test #74:

score: 0
Accepted
time: 362ms
memory: 86100kb

input:

99999 199993
60480 60887
48650 48807
15358 55862
79008 46873
25150 603
94554 73236
26422 26074
12520 12558
94746 6254
44894 51940
88775 7530
61129 60879
1357 27918
10014 10066
61332 61287
54797 54589
41707 41349
7424 7685
94415 94083
70682 83432
98310 98601
88493 88078
78125 78583
23151 23315
83703 ...

output:

1094006787

result:

ok single line: '1094006787'

Test #75:

score: 0
Accepted
time: 297ms
memory: 88464kb

input:

99999 199992
44749 86777
86811 48396
75729 75734
85936 85934
29679 47303
18522 18523
70070 70073
60699 5308
350 282
85692 85696
71130 48290
16237 6025
9312 9314
77105 80559
73308 38348
74228 35891
827 824
22991 52375
95068 55901
90788 90789
31472 86210
69994 70571
7847 89263
66780 67427
76739 76736
...

output:

1110205036

result:

ok single line: '1110205036'

Test #76:

score: 0
Accepted
time: 358ms
memory: 82856kb

input:

149999 199996
108181 29889
4866 7380
95290 131872
78269 117778
62259 8084
29106 32214
149645 77256
62310 24182
134361 55718
14315 34719
23975 41082
143949 100225
46917 10388
30315 60645
90431 32094
57112 89510
8461 65177
4067 38492
45608 20099
56282 63034
56637 6441
143673 106123
138921 104322
20060...

output:

1425646848

result:

ok single line: '1425646848'

Test #77:

score: 0
Accepted
time: 451ms
memory: 81580kb

input:

149999 199999
1386 126316
80711 55344
122679 122602
98634 73402
106719 134082
95935 9048
129166 128715
139880 139792
80141 80104
139439 139578
104954 105352
141969 141477
48244 48123
46398 107280
141745 124144
18528 18556
59680 99170
41979 41780
64287 62711
93146 108735
53327 53330
53063 53328
79068...

output:

1238048766

result:

ok single line: '1238048766'

Test #78:

score: 0
Accepted
time: 461ms
memory: 83608kb

input:

149999 199999
73737 73738
6941 6944
137776 137780
146814 146817
100210 100208
84909 56478
21854 74086
131287 64412
123163 123165
48299 79926
142275 142276
19639 140244
136684 15554
71976 71971
106266 106267
55792 55797
80806 13832
33837 33839
19860 19864
19291 51572
72666 72662
45900 45898
122251 12...

output:

1181309807

result:

ok single line: '1181309807'

Test #79:

score: 0
Accepted
time: 166ms
memory: 83384kb

input:

189999 199999
88054 184049
7308 999
12796 84292
28731 10057
98144 97301
31174 30124
125674 29402
52978 29006
37741 18577
42156 17491
2633 3094
69873 29320
14995 34574
24804 116964
150541 36085
127093 31761
4742 133564
31784 16252
97988 122793
108665 19734
142179 178772
79441 122702
146492 15172
4330...

output:

2873414947

result:

ok single line: '2873414947'

Test #80:

score: 0
Accepted
time: 187ms
memory: 82020kb

input:

189999 199999
160399 159990
50089 49664
98464 98768
168897 165517
173763 173622
96941 97367
72592 72344
71031 70920
143139 142719
187959 188202
72674 23100
12730 12789
24990 24875
158947 159014
117240 117117
2762 188660
88332 87914
76126 75942
34126 33790
89560 89144
167953 168126
131002 130574
1319...

output:

2255862663

result:

ok single line: '2255862663'

Test #81:

score: 0
Accepted
time: 174ms
memory: 82568kb

input:

189999 199998
29687 29684
3200 3196
165323 165327
79063 79068
10503 10506
20207 20210
86796 86799
154490 136840
145003 145000
124393 124389
120681 120684
48528 48533
89579 89582
43335 43332
163368 163373
74405 74402
133321 133318
173440 173436
186632 186627
91910 91906
85789 85784
137716 137718
7880...

output:

2149985841

result:

ok single line: '2149985841'

Test #82:

score: 0
Accepted
time: 165ms
memory: 80484kb

input:

198999 199999
9377 24200
64515 82244
23868 39165
83436 147824
89882 7771
25597 146157
103343 123537
37382 21990
70965 198655
31444 119583
49323 42073
53164 49449
73159 127198
41005 18473
153626 165884
58875 48935
130027 166171
4787 135470
34944 126291
2084 17822
70933 117152
187235 2562
162412 61154...

output:

3258340199

result:

ok single line: '3258340199'

Test #83:

score: 0
Accepted
time: 139ms
memory: 84964kb

input:

198999 199999
173563 173274
123167 123177
69416 69798
95177 94914
132192 132204
97719 98110
195419 194960
154147 154294
160050 160153
97104 97544
11877 11563
46476 46929
47857 48190
10466 10849
141263 141477
21456 21264
32114 31998
152737 153143
108799 108373
67809 68057
139400 139765
86904 86824
47...

output:

2546164065

result:

ok single line: '2546164065'

Test #84:

score: 0
Accepted
time: 119ms
memory: 82608kb

input:

198999 199999
117288 117290
61175 61171
160906 160903
148806 148810
76710 76707
174610 174608
36895 36896
37906 37909
196177 196173
170678 170682
35640 35637
60099 60102
38375 38374
141050 141054
159335 159339
70992 70993
97422 97418
62912 62910
189080 189076
94344 94342
132099 132103
29499 29501
30...

output:

2409664706

result:

ok single line: '2409664706'

Test #85:

score: 0
Accepted
time: 135ms
memory: 80576kb

input:

199899 199999
40144 37316
49499 18034
115428 110103
49919 47399
30800 62643
76180 199001
27845 183106
70619 14492
133501 103248
121419 63112
48 10144
165490 33266
6917 157214
54028 82268
33016 51075
119367 85644
42638 125045
127614 77190
1129 1395
32868 62942
36788 124895
81877 101097
16698 34902
11...

output:

3212810360

result:

ok single line: '3212810360'

Test #86:

score: 0
Accepted
time: 145ms
memory: 82652kb

input:

199899 199999
10666 10858
60072 59705
32602 32540
148973 149102
33328 33688
161022 160642
18723 18630
36658 36885
73599 73108
128858 128777
32842 32736
172963 173349
107308 107502
191134 190696
21567 21940
133583 133484
32347 32819
111972 112059
167769 168002
140569 140106
13995 14211
80531 80979
48...

output:

2643339529

result:

ok single line: '2643339529'

Test #87:

score: 0
Accepted
time: 120ms
memory: 81660kb

input:

199899 199999
110427 110426
126483 126486
50793 50791
6896 6895
86219 86222
178144 178142
151318 151314
46409 46404
56166 56170
145125 145124
116231 116234
2817 2812
89112 89114
71174 71173
6543 6544
115068 115067
27628 27625
99869 99867
24479 24477
42867 42871
62250 62245
143890 143894
34283 34287
...

output:

2426843351

result:

ok single line: '2426843351'

Test #88:

score: 0
Accepted
time: 145ms
memory: 80232kb

input:

199999 199999
15318 132074
126056 50891
109200 122358
21127 167410
60969 126238
34996 14089
87963 175728
11762 28061
102784 4627
32432 42083
17037 60644
2922 5835
27585 24757
74270 118798
3018 7340
80952 61309
87347 78397
13332 3911
146520 123956
9424 24344
110144 40293
42893 71212
2623 129141
22542...

output:

3271026810

result:

ok single line: '3271026810'

Test #89:

score: 0
Accepted
time: 138ms
memory: 80380kb

input:

199999 199999
125335 125813
39768 39336
74762 74663
49001 48517
168118 168505
74172 74329
85547 85794
126936 126858
6287 5829
175718 175506
77297 77017
54609 54475
50512 50961
186701 187057
97921 97699
198431 198390
198155 197656
159759 159952
63500 63608
100704 101105
761 1117
145511 145743
83292 8...

output:

2662350779

result:

ok single line: '2662350779'

Test #90:

score: 0
Accepted
time: 109ms
memory: 83056kb

input:

199999 199999
42583 42580
109107 109105
5844 5840
197242 197237
99910 99911
58369 58364
110784 110780
104789 104784
101413 101409
190104 190106
107818 107813
5466 5469
80207 80205
178732 178737
78220 78215
44120 44124
135542 135539
18088 18093
40873 40874
38385 38382
159762 159758
28535 28539
151345...

output:

2476561436

result:

ok single line: '2476561436'

Test #91:

score: 0
Accepted
time: 147ms
memory: 78496kb

input:

200000 199999
102207 84158
101514 127136
7262 108163
143334 154258
15352 32312
40024 34913
41068 11637
132832 63593
90670 39222
152613 158929
42897 87541
135218 177375
110787 140019
84633 69516
189808 82496
173369 146140
89152 113010
116530 106837
159393 17874
106625 101647
111231 151209
4370 69114
...

output:

3240282886

result:

ok single line: '3240282886'

Test #92:

score: 0
Accepted
time: 135ms
memory: 80460kb

input:

200000 199999
165498 165440
15420 15317
76417 76001
146304 145920
198273 197776
18039 17650
19442 19628
87553 87972
124299 124620
38152 38107
12414 12536
62002 61814
16824 16577
184983 185315
36272 36656
18487 18835
71253 70784
63051 62573
62158 61995
24452 24297
143893 144165
120479 120758
176152 1...

output:

2601554398

result:

ok single line: '2601554398'

Test #93:

score: 0
Accepted
time: 119ms
memory: 84324kb

input:

200000 199999
4546 4548
93483 93486
37185 37189
97967 97970
92070 92069
171388 171383
192103 192106
142035 142040
16704 16707
49401 49403
7301 7303
190358 190353
33174 33178
41510 41515
46817 46819
86108 86103
27501 27496
173288 173290
161840 161843
184246 184241
5522 5525
171973 171969
25115 25111
...

output:

2490797889

result:

ok single line: '2490797889'

Extra Test:

score: 0
Extra Test Passed