QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#405321#7652. Adolescent Architecture 2lmq26052003AC ✓1ms3756kbC++171.4kb2024-05-05 17:20:222024-05-05 17:20:23

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3728kb

input:

2
circle 2
triangle 2

output:

2

result:

ok single line: '2'

Test #2:

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

input:

2
circle 1
circle 2

output:

3

result:

ok single line: '3'

Test #3:

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

input:

5
circle 123
triangle 456
square 789
square 789
triangle 555

output:

7

result:

ok single line: '7'

Test #4:

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

input:

3
circle 299303201
square 79724391
triangle 437068198

output:

3

result:

ok single line: '3'

Test #5:

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

input:

3
square 539715887
circle 518408351
triangle 348712924

output:

0

result:

ok single line: '0'

Test #6:

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

input:

6
square 4
square 1
circle 10
square 9
triangle 4
circle 1

output:

3

result:

ok single line: '3'

Test #7:

score: 0
Accepted
time: 1ms
memory: 3620kb

input:

3
triangle 9
triangle 3
square 9

output:

2

result:

ok single line: '2'

Test #8:

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

input:

10
square 4
square 9
circle 5
circle 2
triangle 7
circle 2
triangle 4
triangle 1
triangle 1
circle 2

output:

5

result:

ok single line: '5'

Test #9:

score: 0
Accepted
time: 1ms
memory: 3684kb

input:

6
square 2
circle 4
circle 10
square 8
circle 10
square 10

output:

1

result:

ok single line: '1'

Test #10:

score: 0
Accepted
time: 1ms
memory: 3692kb

input:

4
circle 4
triangle 8
square 2
circle 5

output:

3

result:

ok single line: '3'

Test #11:

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

input:

8
triangle 7
circle 5
circle 6
square 6
square 9
circle 7
triangle 9
circle 4

output:

11

result:

ok single line: '11'

Test #12:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

2
circle 2
square 7

output:

3

result:

ok single line: '3'

Test #13:

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

input:

9
circle 3
circle 1
triangle 9
square 4
triangle 8
circle 8
square 2
circle 10
circle 6

output:

2

result:

ok single line: '2'

Test #14:

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

input:

2
triangle 10
circle 3

output:

1

result:

ok single line: '1'

Test #15:

score: 0
Accepted
time: 1ms
memory: 3504kb

input:

6
triangle 5
circle 7
triangle 10
triangle 5
triangle 1
triangle 4

output:

8

result:

ok single line: '8'

Test #16:

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

input:

3
square 7
circle 8
square 2

output:

3

result:

ok single line: '3'

Test #17:

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

input:

40
circle 682
triangle 686
square 398
square 164
square 23
square 470
triangle 173
triangle 466
square 881
circle 90
triangle 842
square 812
circle 560
square 959
circle 694
square 654
triangle 924
circle 301
circle 513
triangle 609
circle 850
square 70
triangle 883
square 250
circle 885
circle 495
...

output:

18

result:

ok single line: '18'

Test #18:

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

input:

13
circle 547
circle 991
triangle 3
square 929
triangle 134
square 511
triangle 901
circle 852
square 954
triangle 238
square 43
circle 953
triangle 344

output:

7

result:

ok single line: '7'

Test #19:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

35
triangle 440
square 733
circle 939
triangle 970
circle 60
triangle 499
circle 531
circle 780
circle 256
square 121
circle 250
triangle 658
circle 907
circle 230
square 417
triangle 86
triangle 506
circle 599
triangle 858
square 137
square 500
square 394
circle 933
square 290
square 244
circle 435...

output:

15

result:

ok single line: '15'

Test #20:

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

input:

23
triangle 873
circle 645
circle 764
circle 702
square 526
circle 911
circle 924
triangle 35
square 952
circle 311
circle 477
circle 712
triangle 862
circle 155
triangle 386
circle 442
circle 548
triangle 734
square 233
circle 67
square 685
circle 146
triangle 52

output:

22

result:

ok single line: '22'

Test #21:

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

input:

12
circle 538
circle 429
square 71
square 975
triangle 144
circle 477
triangle 371
square 831
circle 130
square 750
triangle 864
square 718

output:

17

result:

ok single line: '17'

Test #22:

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

input:

42
square 611
square 167
triangle 442
square 128
square 995
circle 481
square 14
square 355
triangle 337
square 568
circle 453
circle 273
triangle 313
circle 236
triangle 301
square 75
circle 39
circle 489
triangle 406
circle 447
triangle 484
square 344
circle 538
triangle 162
triangle 881
square 68...

output:

22

result:

ok single line: '22'

Test #23:

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

input:

50
square 115
circle 728
triangle 612
square 696
triangle 408
triangle 582
circle 343
triangle 75
triangle 269
circle 714
circle 306
square 588
square 550
square 467
square 270
circle 808
triangle 143
square 394
triangle 957
square 510
triangle 903
square 176
triangle 281
circle 277
triangle 531
cir...

output:

39

result:

ok single line: '39'

Test #24:

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

input:

12
circle 636
circle 994
square 418
circle 885
circle 318
triangle 97
square 669
triangle 629
square 819
circle 816
square 956
circle 631

output:

14

result:

ok single line: '14'

Test #25:

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

input:

44
triangle 573
triangle 163
triangle 980
circle 667
circle 940
square 754
circle 816
triangle 219
square 755
square 476
triangle 769
circle 1
square 316
triangle 770
triangle 234
square 132
square 619
square 456
circle 627
triangle 414
square 108
triangle 562
triangle 872
circle 874
triangle 693
sq...

output:

44

result:

ok single line: '44'

Test #26:

score: 0
Accepted
time: 1ms
memory: 3428kb

input:

12
circle 958
circle 177
circle 841
square 908
square 470
square 860
circle 618
triangle 194
circle 880
triangle 392
square 214
circle 546

output:

15

result:

ok single line: '15'

Test #27:

score: 0
Accepted
time: 1ms
memory: 3584kb

input:

373
triangle 376881847
triangle 397879535
triangle 410194956
square 799453385
circle 843420897
square 570797717
square 966812105
triangle 125117705
triangle 407418569
square 877675121
triangle 663595767
square 908221198
triangle 128120297
square 801337884
square 472161130
circle 364083148
triangle 3...

output:

374

result:

ok single line: '374'

Test #28:

score: 0
Accepted
time: 1ms
memory: 3588kb

input:

581
triangle 607697888
triangle 470180439
triangle 130865540
square 507673127
square 149242853
square 364910848
square 143149661
square 276788897
square 164935343
triangle 162380919
triangle 945107407
square 456454291
triangle 140802292
triangle 262212907
square 496269380
square 351435485
triangle 4...

output:

179

result:

ok single line: '179'

Test #29:

score: 0
Accepted
time: 1ms
memory: 3716kb

input:

818
square 830087373
triangle 249219068
square 398092219
triangle 235761253
circle 95282524
triangle 39271566
square 19473457
circle 748276082
triangle 936809948
triangle 357940053
circle 1660322
circle 250077354
square 263660209
circle 539928855
triangle 157818588
triangle 946191620
circle 18674604...

output:

855

result:

ok single line: '855'

Test #30:

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

input:

34
square 518184890
triangle 482127455
square 76658425
circle 810060531
circle 289581607
circle 774824451
triangle 558714052
square 851451895
triangle 675249148
circle 180996851
circle 325520524
circle 555837695
triangle 596155031
square 924548574
circle 339202712
square 661886370
triangle 776937914...

output:

33

result:

ok single line: '33'

Test #31:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

940
triangle 365372665
circle 672311524
triangle 917811927
triangle 819263128
triangle 132866575
square 351997706
circle 7301528
triangle 520561868
square 223642634
circle 807676131
square 924784687
circle 491389155
square 855235593
square 602745931
circle 754637143
square 364177132
square 148253867...

output:

347

result:

ok single line: '347'

Test #32:

score: 0
Accepted
time: 1ms
memory: 3696kb

input:

538
square 735869961
circle 651702352
triangle 506307130
square 220461620
circle 107891245
triangle 598808449
square 134450144
square 214498998
circle 961671936
circle 569208199
circle 856957205
square 950556506
triangle 696524395
triangle 237492904
circle 924777808
triangle 712265078
circle 4406961...

output:

173

result:

ok single line: '173'

Test #33:

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

input:

206
circle 346104126
circle 604004268
circle 636432502
square 785608355
circle 77631802
triangle 652631804
circle 85241305
triangle 774218202
circle 502727723
triangle 551045727
triangle 734395501
circle 410885794
square 870391282
triangle 549854897
square 72391646
triangle 886285447
square 89209825...

output:

227

result:

ok single line: '227'

Test #34:

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

input:

835
square 398352722
circle 127321892
circle 102974849
circle 71513010
triangle 441859973
circle 11989412
circle 526165694
triangle 39652272
square 789497605
circle 414940383
circle 640157088
square 759029250
circle 10213097
square 260694310
triangle 140387901
square 462415906
triangle 88353794
tria...

output:

804

result:

ok single line: '804'

Test #35:

score: 0
Accepted
time: 1ms
memory: 3516kb

input:

527
square 932571330
square 46527476
circle 626780604
triangle 500657704
circle 342704892
circle 547392811
square 443042754
circle 887697792
square 16351115
square 402281282
circle 619311741
circle 82835101
square 157559335
square 906439654
triangle 393965066
circle 535417392
square 69918678
square ...

output:

147

result:

ok single line: '147'

Test #36:

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

input:

270
square 899235156
square 200849499
circle 438342007
square 797361895
circle 127813059
square 505187218
circle 128675259
square 675643633
triangle 83902563
square 745832291
triangle 755402882
square 429140325
triangle 656766662
triangle 237047677
triangle 932916115
square 350208021
square 50054996...

output:

313

result:

ok single line: '313'

Test #37:

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

input:

1000
triangle 404540885
square 574387031
circle 676915876
circle 333712808
circle 216664392
square 336900626
circle 4535873
triangle 618756565
circle 991809811
triangle 993761733
triangle 650352971
square 920210973
triangle 61578888
circle 779920124
square 663309204
circle 418816177
circle 881574018...

output:

293

result:

ok single line: '293'

Test #38:

score: 0
Accepted
time: 1ms
memory: 3528kb

input:

1000
square 892863911
triangle 347077893
circle 854365090
circle 898712985
circle 595005141
triangle 677715368
square 705220301
triangle 609901609
circle 185459910
circle 583967909
square 626551893
circle 899306753
triangle 116883050
square 262226155
triangle 117192097
triangle 240376540
circle 7006...

output:

342

result:

ok single line: '342'

Test #39:

score: 0
Accepted
time: 1ms
memory: 3756kb

input:

1000
triangle 886327161
triangle 624595438
triangle 396487051
circle 245646909
square 993646875
circle 130178866
square 134807203
square 755526674
circle 163713812
circle 576785354
triangle 781701567
triangle 170379255
square 40524102
circle 313108778
triangle 757335507
circle 380576614
triangle 718...

output:

348

result:

ok single line: '348'

Test #40:

score: 0
Accepted
time: 1ms
memory: 3552kb

input:

1000
circle 330401192
circle 47813287
circle 393568526
triangle 647861982
circle 59747090
square 682288443
circle 577681442
triangle 846749877
circle 769608744
circle 362573801
circle 484564026
circle 593823923
square 761125818
square 301597562
circle 838550133
square 186649311
triangle 112585365
ci...

output:

973

result:

ok single line: '973'

Test #41:

score: 0
Accepted
time: 1ms
memory: 3548kb

input:

1000
square 837769914
circle 712059134
square 384260529
circle 608896458
square 153728295
square 831121681
triangle 491203974
triangle 47322888
square 438157752
circle 158984032
square 150748358
square 959597503
triangle 826533264
triangle 350001
circle 906673847
triangle 891959872
square 575116319
...

output:

348

result:

ok single line: '348'

Test #42:

score: 0
Accepted
time: 1ms
memory: 3484kb

input:

1000
square 561070179
square 142538332
square 832159981
triangle 932589075
triangle 164854738
square 740517932
square 237179486
square 849022105
circle 475686355
circle 716927243
triangle 252249799
circle 321402012
triangle 132404304
circle 686901355
square 471407777
triangle 223519442
triangle 7373...

output:

1038

result:

ok single line: '1038'

Test #43:

score: 0
Accepted
time: 1ms
memory: 3720kb

input:

1000
square 47358273
triangle 873461198
square 320847844
circle 443792182
square 49194070
circle 415675781
circle 773718412
triangle 684618071
square 398630405
triangle 725495201
square 957090098
triangle 498307293
triangle 134279229
square 866548538
circle 492997606
triangle 821450145
triangle 3466...

output:

331

result:

ok single line: '331'

Test #44:

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

input:

1000
square 808149365
triangle 806606062
triangle 265078805
square 372582548
square 419404888
square 884539531
triangle 685271227
square 190561533
circle 713509470
circle 644467884
circle 890707550
square 602144729
square 70842717
triangle 773912989
circle 150427160
square 566731143
square 664525872...

output:

949

result:

ok single line: '949'

Test #45:

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

input:

1000
triangle 392243282
square 418428845
triangle 305018959
square 351603175
square 425204143
circle 513236889
square 706499260
circle 530506184
circle 971314188
triangle 482285889
square 228346388
triangle 374982995
circle 29199512
triangle 801652274
square 173884175
circle 772281908
square 5831176...

output:

806

result:

ok single line: '806'

Test #46:

score: 0
Accepted
time: 1ms
memory: 3724kb

input:

1000
square 956836686
triangle 190448854
square 135823508
circle 321579935
square 360097938
circle 198857159
square 119574334
circle 338638406
square 525510268
triangle 406332864
square 56231064
triangle 935089160
triangle 449369241
triangle 204548056
triangle 834342529
square 785040715
square 19826...

output:

290

result:

ok single line: '290'

Test #47:

score: 0
Accepted
time: 1ms
memory: 3596kb

input:

2
circle 1000000000
circle 999999999

output:

2

result:

ok single line: '2'

Test #48:

score: 0
Accepted
time: 1ms
memory: 3696kb

input:

2
circle 1000000000
circle 1000000000

output:

0

result:

ok single line: '0'

Test #49:

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

input:

2
circle 999999999
circle 1000000000

output:

2

result:

ok single line: '2'

Test #50:

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

input:

2
circle 225058681
square 318281039

output:

3

result:

ok single line: '3'

Test #51:

score: 0
Accepted
time: 1ms
memory: 3568kb

input:

2
circle 543339720
square 768398401

output:

2

result:

ok single line: '2'

Test #52:

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

input:

2
circle 299303201
triangle 518408351

output:

1

result:

ok single line: '1'

Test #53:

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

input:

2
circle 408855776
triangle 708158977

output:

0

result:

ok single line: '0'

Test #54:

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

input:

2
square 999999999
circle 499999999

output:

2

result:

ok single line: '2'

Test #55:

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

input:

2
square 1000000000
circle 500000000

output:

2

result:

ok single line: '2'

Test #56:

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

input:

2
square 999999999
circle 500000001

output:

2

result:

ok single line: '2'

Test #57:

score: 0
Accepted
time: 1ms
memory: 3608kb

input:

2
square 1000000000
square 999999999

output:

2

result:

ok single line: '2'

Test #58:

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

input:

2
square 1000000000
square 1000000000

output:

0

result:

ok single line: '0'

Test #59:

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

input:

2
square 999999999
square 1000000000

output:

2

result:

ok single line: '2'

Test #60:

score: 0
Accepted
time: 1ms
memory: 3544kb

input:

2
square 778889060
triangle 806365291

output:

1

result:

ok single line: '1'

Test #61:

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

input:

2
square 699164669
triangle 723828528

output:

0

result:

ok single line: '0'

Test #62:

score: 0
Accepted
time: 1ms
memory: 3500kb

input:

2
triangle 708158977
circle 204427888

output:

2

result:

ok single line: '2'

Test #63:

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

input:

2
triangle 328657725
circle 94875313

output:

1

result:

ok single line: '1'

Test #64:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

2
triangle 912586865
square 423533038

output:

3

result:

ok single line: '3'

Test #65:

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

input:

2
triangle 204427888
square 94875313

output:

1

result:

ok single line: '1'

Test #66:

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

input:

2
triangle 1000000000
triangle 999999999

output:

1

result:

ok single line: '1'

Test #67:

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

input:

2
triangle 1000000000
triangle 1000000000

output:

0

result:

ok single line: '0'

Test #68:

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

input:

2
triangle 999999999
triangle 1000000000

output:

1

result:

ok single line: '1'

Test #69:

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

input:

6
square 300542714
circle 847066076
circle 627960926
square 981352533
square 459991496
circle 365666862

output:

0

result:

ok single line: '0'

Test #70:

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

input:

6
circle 956618651
circle 627960926
circle 518408351
circle 927264127
circle 109552575
circle 652878889

output:

0

result:

ok single line: '0'

Test #71:

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

input:

3
circle 518408351
square 380267105
circle 338495549

output:

0

result:

ok single line: '0'

Test #72:

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

input:

6
circle 788357028
square 778889060
circle 299303201
circle 189750626
square 938337842
circle 832004759

output:

5

result:

ok single line: '5'

Test #73:

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

input:

6
circle 189750626
square 778889060
circle 788357028
square 938337842
circle 678804453
triangle 219634389

output:

5

result:

ok single line: '5'

Test #74:

score: 0
Accepted
time: 1ms
memory: 3596kb

input:

6
square 778889060
circle 788357028
circle 299303201
circle 189750626
circle 678804453
square 682146442

output:

5

result:

ok single line: '5'