-
Notifications
You must be signed in to change notification settings - Fork 16
/
test.uml
3746 lines (3746 loc) · 269 KB
/
test.uml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML" xmi:id="_-jMIQRKeEeaKjdK582j3uA">
<name xsi:nil="true"/>
<elementImport xmi:id="_-xu6kBKeEeaKjdK582j3uA">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#char"/>
</elementImport>
<elementImport xmi:id="_-xx94BKeEeaKjdK582j3uA">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</elementImport>
<elementImport xmi:id="_-x-yMBKeEeaKjdK582j3uA">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</elementImport>
<elementImport xmi:id="_-yIjMBKeEeaKjdK582j3uA">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#double"/>
</elementImport>
<elementImport xmi:id="_-y-3wBKeEeaKjdK582j3uA">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#boolean"/>
</elementImport>
<elementImport xmi:id="_-zAs8RKeEeaKjdK582j3uA">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#long"/>
</elementImport>
<elementImport xmi:id="_-0D10BKeEeaKjdK582j3uA">
<importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#byte"/>
</elementImport>
<packagedElement xmi:type="uml:Class" xmi:id="_-sBUIBKeEeaKjdK582j3uA" name="Main">
<ownedAttribute xmi:id="_-xwIsBKeEeaKjdK582j3uA" name="arr" visibility="private" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#char"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-xwIsRKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-xwIshKeEeaKjdK582j3uA"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-xyk8BKeEeaKjdK582j3uA" name="maxlen" visibility="private" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-xyk8RKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-xyk8hKeEeaKjdK582j3uA"/>
</ownedAttribute>
<ownedOperation xmi:id="_-x5SoBKeEeaKjdK582j3uA" name="lis" visibility="public" isStatic="true"/>
<ownedOperation xmi:id="_-x_ZQBKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedParameter xmi:id="_-x_ZQRKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-x_ZQhKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-x_ZQxKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="_-sOvgBKeEeaKjdK582j3uA" name="com">
<packagedElement xmi:type="uml:Package" xmi:id="_-sPWkBKeEeaKjdK582j3uA" name="ding">
<packagedElement xmi:type="uml:Package" xmi:id="_-sPWkRKeEeaKjdK582j3uA" name="acm">
<packagedElement xmi:type="uml:Class" xmi:id="_-sQksBKeEeaKjdK582j3uA" name="Acm7_temp">
<ownedOperation xmi:id="_-yAnYBKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-yB1gBKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @time 2016-4-14 下午2:54:40
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-yAnYRKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-yAnYhKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-yAnYxKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-yCckBKeEeaKjdK582j3uA" name="cal" visibility="public" isStatic="true">
<ownedParameter xmi:id="_-yCckRKeEeaKjdK582j3uA" name="a">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-yCckhKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-yCckxKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-sRy0BKeEeaKjdK582j3uA" name="Acm17">
<ownedComment xmi:id="_-sTA8BKeEeaKjdK582j3uA">
<body>/**
* 单调递增最长子序列
* 时间限制:3000 ms | 内存限制:65535 KB
* 难度:4
* 描述
* 求一个字符串的最长递增子序列的长度
* 如:dabdbf最长递增子序列就是abdf,长度为4
* 输入
* 第一行一个整数0<n<20,表示有n个字符串要处理
* 随后的n行,每行有一个字符串,该字符串的长度不会超过10000
* 输出
* 输出字符串的最长递增子序列的长度
* 样例输入
* 3
* aaa
* ababc
* abklmncdefg
* 样例输出
* 1
* 3
* 7
* @author daniel
* @email [email protected]
* @time 2016-4-27 下午12:33:47
*/
</body>
</ownedComment>
<ownedAttribute xmi:id="_-yERwBKeEeaKjdK582j3uA" name="arr" visibility="private" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#char"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-yERwRKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-yERwhKeEeaKjdK582j3uA"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-yFf4BKeEeaKjdK582j3uA" name="maxlen" visibility="private" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-yFf4RKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-yFf4hKeEeaKjdK582j3uA"/>
</ownedAttribute>
<ownedOperation xmi:id="_-yGuABKeEeaKjdK582j3uA" name="lis" visibility="public" isStatic="true"/>
<ownedOperation xmi:id="_-yHVEBKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedParameter xmi:id="_-yHVERKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-yHVEhKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-yHVExKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-sToABKeEeaKjdK582j3uA" name="Acm12">
<ownedComment xmi:id="_-sUPEBKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @email [email protected]
* @time 2016-4-13 下午6:09:14
*/
</body>
</ownedComment>
<ownedAttribute xmi:id="_-yJxUBKeEeaKjdK582j3uA" name="width" visibility="private" isStatic="true">
<ownedComment xmi:id="_-yKYYBKeEeaKjdK582j3uA">
<body>/**
* 长度
*/
</body>
</ownedComment>
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#double"/>
<defaultValue xmi:type="uml:LiteralInteger" xmi:id="_-yJxURKeEeaKjdK582j3uA" value="20"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-yK_cBKeEeaKjdK582j3uA" name="high" visibility="private" isStatic="true">
<ownedComment xmi:id="_-yLmgBKeEeaKjdK582j3uA">
<body>/**
* 高度宽度
*/
</body>
</ownedComment>
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#double"/>
<defaultValue xmi:type="uml:LiteralInteger" xmi:id="_-yK_cRKeEeaKjdK582j3uA" value="2"/>
</ownedAttribute>
<ownedOperation xmi:id="_-yMNkBKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-yM0oBKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @time 2016-4-13 下午5:40:50
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-yMNkRKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-yMNkhKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-yMNkxKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-sU2IBKeEeaKjdK582j3uA" name="Acm7">
<ownedComment xmi:id="_-sVdMBKeEeaKjdK582j3uA">
<body>/**
* 描述
* 一个街区有很多住户,街区的街道只能为东西、南北两种方向。
* 住户只可以沿着街道行走。
* 各个街道之间的间隔相等。
* 用(x,y)来表示住户坐在的街区。
* 例如(4,20),表示用户在东西方向第4个街道,南北方向第20个街道。
* 现在要建一个邮局,使得各个住户到邮局的距离之和最少。
* 求现在这个邮局应该建在那个地方使得所有住户距离之和最小;
* 输入
* 第一行一个整数n<20,表示有n组测试数据,下面是n组数据;
* 每组第一行一个整数m<20,表示本组有m个住户,下面的m行每行有两个整数0<x,y<100,表示某个用户所在街区的坐标。
* m行后是新一组的数据;
* 输出
* 每组数据输出到邮局最小的距离和,回车结束;
* 样例输入
* 2
* 3
* 1 1
* 2 1
* 1 2
* 5
* 2 9
* 5 20
* 11 9
* 1 1
* 1 20
* 样例输出
* 2
* 44
* 分析:
* 每个住户分左边X,Y。穷举法
* 1.计算出一个坐标点分别到每个住户的距离,然后相加。
* 2.计算出所有坐标点到输入住户的距离,保留最小距离
* @author daniel
* @email [email protected]
* @time 2016-4-14 下午3:56:29
*/
</body>
</ownedComment>
<ownedAttribute xmi:id="_-yOCwBKeEeaKjdK582j3uA" name="maxX" visibility="private" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
<defaultValue xmi:type="uml:LiteralInteger" xmi:id="_-yOCwRKeEeaKjdK582j3uA" value="20"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-yP38BKeEeaKjdK582j3uA" name="maxY" visibility="private" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
<defaultValue xmi:type="uml:LiteralInteger" xmi:id="_-yP38RKeEeaKjdK582j3uA" value="100"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-yRGEBKeEeaKjdK582j3uA" name="minF" visibility="private" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
<defaultValue xmi:type="uml:LiteralInteger" xmi:id="_-yRGERKeEeaKjdK582j3uA"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-yS7QBKeEeaKjdK582j3uA" name="currentX" visibility="private" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
<defaultValue xmi:type="uml:LiteralInteger" xmi:id="_-yS7QRKeEeaKjdK582j3uA"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-yUwcBKeEeaKjdK582j3uA" name="currentY" visibility="private" isStatic="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
<defaultValue xmi:type="uml:LiteralInteger" xmi:id="_-yUwcRKeEeaKjdK582j3uA"/>
</ownedAttribute>
<ownedOperation xmi:id="_-yV-kBKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-yXMsBKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @time 2016-4-14 下午3:09:34
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-yV-kRKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-yV-khKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-yV-kxKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-yXMsRKeEeaKjdK582j3uA" name="count" visibility="public" isStatic="true">
<ownedComment xmi:id="_-yYa0BKeEeaKjdK582j3uA">
<body>/**
* 计算最短距离
* @author daniel
* @time 2016-4-14 下午3:52:01
* @param user
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-yXMshKeEeaKjdK582j3uA" name="user">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-yXMsxKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-yXMtBKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-sWEQBKeEeaKjdK582j3uA" name="Acm19">
<ownedComment xmi:id="_-sWrUBKeEeaKjdK582j3uA">
<body>/**
* 擅长排列的小明
* 时间限制:1000 ms | 内存限制:65535 KB
* 难度:4
* 描述
* 小明十分聪明,而且十分擅长排列计算。比如给小明一个数字5,他能立刻给出1-5按字典序的全排列,如果你想为难他,在这5个数字中选出几个数字让他继续全排列,那么你就错了,他同样的很擅长。现在需要你写一个程序来验证擅长排列的小明到底对不对。
* 输入
* 第一行输入整数N(1<N<10)表示多少组测试数据,
* 每组测试数据第一行两个整数 n m (1<n<9,0<m<=n)
* 输出
* 在1-n中选取m个字符进行全排列,按字典序全部输出,每种排列占一行,每组数据间不需分界。如样例
* 样例输入
* 2
* 3 1
* 4 2
* 样例输出
* 1
* 2
* 3
* 12
* 13
* 14
* 21
* 23
* 24
* 31
* 32
* 34
* 41
* 42
* 43
* @author daniel
* @email [email protected]
* @time 2016-4-27 下午12:32:37
*/
</body>
</ownedComment>
<ownedOperation xmi:id="_-yZB4BKeEeaKjdK582j3uA" name="prev" visibility="public" isStatic="true">
<ownedParameter xmi:id="_-yZB4RKeEeaKjdK582j3uA" name="n">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
<ownedParameter xmi:id="_-yZB4hKeEeaKjdK582j3uA" name="m">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
<ownedParameter xmi:id="_-yZB4xKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-yaQABKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-ya3EBKeEeaKjdK582j3uA">
<body>/**
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-yaQARKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-yaQAhKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-yaQAxKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-sX5cBKeEeaKjdK582j3uA" name="Acm16">
<ownedComment xmi:id="_-sYggBKeEeaKjdK582j3uA">
<body>/**
* 矩形嵌套
* 时间限制:3000 ms | 内存限制:65535 KB
* 难度:4
* 描述
* 有n个矩形,每个矩形可以用a,b来描述,表示长和宽。矩形X(a,b)可以嵌套在矩形Y(c,d)中当且仅当a<c,b<d或者b<c,a<d(相当于旋转X90度)。例如(1,5)可以嵌套在(6,2)内,但不能嵌套在(3,4)中。你的任务是选出尽可能多的矩形排成一行,使得除最后一个外,每一个矩形都可以嵌套在下一个矩形内。
* 输入
* 第一行是一个正正数N(0<N<10),表示测试数据组数,
* 每组测试数据的第一行是一个正正数n,表示该组测试数据中含有矩形的个数(n<=1000)
* 随后的n行,每行有两个数a,b(0<a,b<100),表示矩形的长和宽
* 输出
* 每组测试数据都输出一个数,表示最多符合条件的矩形数目,每组输出占一行
* 样例输入
* 1
* 10
* 1 2
* 2 4
* 5 8
* 6 10
* 7 9
* 3 1
* 5 8
* 12 10
* 9 7
* 2 2
* 样例输出
* 5
* @author daniel
* @email [email protected]
* @time 2016-4-25 下午1:46:22
*/
</body>
</ownedComment>
<ownedOperation xmi:id="_-ybeIBKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-ycsQBKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @time 2016-4-25 下午12:18:52
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-ybeIRKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-ybeIhKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-ybeIxKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-ydTUBKeEeaKjdK582j3uA" name="returnAnsNum" visibility="public" isStatic="true">
<ownedParameter xmi:id="_-ydTURKeEeaKjdK582j3uA" name="recList" type="_-vdCoxKeEeaKjdK582j3uA"/>
<ownedParameter xmi:id="_-ydTUhKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-sYggRKeEeaKjdK582j3uA" name="Rectangle2" visibility="package">
<ownedComment xmi:id="_-sZuoBKeEeaKjdK582j3uA">
<body>/**
* ID,长宽对象
* @author daniel
* @email [email protected]
* @time 2016-4-15 上午11:47:27
*/
</body>
</ownedComment>
<ownedAttribute xmi:id="_-yfvkBKeEeaKjdK582j3uA" name="length" visibility="private">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-yiL0BKeEeaKjdK582j3uA" name="width" visibility="private">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedAttribute>
<ownedOperation xmi:id="_-yiy4BKeEeaKjdK582j3uA" name="getLength" visibility="public">
<ownedParameter xmi:id="_-yiy4RKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-ykoEBKeEeaKjdK582j3uA" name="setLength" visibility="public">
<ownedParameter xmi:id="_-ykoERKeEeaKjdK582j3uA" name="length">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-yl2MBKeEeaKjdK582j3uA" name="getWidth" visibility="public">
<ownedParameter xmi:id="_-yl2MRKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-ynEUBKeEeaKjdK582j3uA" name="setWidth" visibility="public">
<ownedParameter xmi:id="_-ynEURKeEeaKjdK582j3uA" name="width">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-yoScBKeEeaKjdK582j3uA" name="toString" visibility="public">
<ownedParameter xmi:id="_-yoScRKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-ypgkBKeEeaKjdK582j3uA" name="compareTo" visibility="public">
<ownedParameter xmi:id="_-ypgkRKeEeaKjdK582j3uA" name="o" type="_-sYggRKeEeaKjdK582j3uA"/>
<ownedParameter xmi:id="_-ypgkhKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-saVsBKeEeaKjdK582j3uA" name="Acm6">
<ownedComment xmi:id="_-sa8wBKeEeaKjdK582j3uA">
<body>/**
* 描述 现有一块草坪,长为20米,宽为2米,要在横中心线上放置半径为Ri的喷水装置,每个喷水装置的效果都会让以它为中心的半径为实数Ri(0<Ri<15)
* 的圆被湿润,这有充足的喷水装置i(1<i<600)个,并且一定能把草坪全部湿润,你要做的是:选择尽量少的喷水装置,把整个草坪的全部湿润。 输入
* 第一行m表示有m组测试数据 每一组测试数据的第一行有一个整数数n,n表示共有n个喷水装置,随后的一行,有n个实数ri,ri表示该喷水装置能覆盖的圆的半径。
* 输出 输出所用装置的个数 样例输入 2 5 2 3.2 4 4.5 6 10 1 2 3 1 2 1.2 3 1.1 1 2 样例输出 2 5
* 思路:求出三角形另一侧边的长度。半径平方-(宽/2)平方
* @author daniel
* @email [email protected]
* @time 2016-4-13 下午6:09:14
*/
</body>
</ownedComment>
<ownedAttribute xmi:id="_-yrVwBKeEeaKjdK582j3uA" name="width" visibility="private" isStatic="true" isReadOnly="true">
<ownedComment xmi:id="_-yr80BKeEeaKjdK582j3uA">
<body>/**
* 长度
*/
</body>
</ownedComment>
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#double"/>
<defaultValue xmi:type="uml:LiteralInteger" xmi:id="_-yrVwRKeEeaKjdK582j3uA" value="20"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-ysj4BKeEeaKjdK582j3uA" name="high" visibility="private" isStatic="true" isReadOnly="true">
<ownedComment xmi:id="_-ytyABKeEeaKjdK582j3uA">
<body>/**
* 高度宽度
*/
</body>
</ownedComment>
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#double"/>
<defaultValue xmi:type="uml:LiteralInteger" xmi:id="_-ysj4RKeEeaKjdK582j3uA" value="2"/>
</ownedAttribute>
<ownedOperation xmi:id="_-ytyARKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-yvAIBKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @time 2016-4-13 下午5:40:50
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-ytyAhKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-ytyAxKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-ytyBBKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-sbj0BKeEeaKjdK582j3uA" name="Acm11">
<ownedComment xmi:id="_-sbj0RKeEeaKjdK582j3uA">
<body>/**
* 奇偶数分离 时间限制:3000 ms | 内存限制:65535 KB 难度:1 描述 有一个整型偶数n(2<= n
* <=10000),你要做的是:先把1到n中的所有奇数从小到大输出,再把所有的偶数从小到大输出。 输入 第一行有一个整数i(2<=i<30)表示有 i
* 组测试数据; 每组有一个整型偶数n。 输出 第一行输出所有的奇数 第二行输出所有的偶数 样例输入 2 10 14 样例输出 1 3 5 7 9 2 4 6
* 8 10
* 1 3 5 7 9 11 13 2 4 6 8 10 12 14
* @author daniel
* @email [email protected]
* @time 2016-4-18 下午2:10:55
*/
</body>
</ownedComment>
<ownedOperation xmi:id="_-yvAIRKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-yvnMBKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @time 2016-4-18 下午1:49:12
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-yvAIhKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-yvAIxKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-yvAJBKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-scK4BKeEeaKjdK582j3uA" name="Acm4">
<ownedComment xmi:id="_-scx8BKeEeaKjdK582j3uA">
<body>/**
* 描述
* 输入三个字符(可以重复)后,按各字符的ASCII码从小到大的顺序输出这三个字符。
* 输入
* 第一行输入一个数N,表示有N组测试数据。后面的N行输入多组数据,每组输入数据都是占一行,有三个字符组成,之间无空格。
* 输出
* 对于每组输入数据,输出一行,字符中间用一个空格分开。
* 样例输入
* 2
* qwe
* asd
* 样例输出
* e q w
* a d s
* @author daniel
* @email [email protected]
* @time 2016-4-13 下午3:47:42
*/
</body>
</ownedComment>
<ownedOperation xmi:id="_-ywOQBKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-yw1UBKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @time 2016-4-13 下午3:16:33
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-ywOQRKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-ywOQhKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-ywOQxKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-yxcYBKeEeaKjdK582j3uA" name="sort" visibility="public" isStatic="true">
<ownedComment xmi:id="_-y9CkBKeEeaKjdK582j3uA">
<body>/**
* 排序
* @author daniel
* @time 2016-4-13 下午3:20:44
* @param str
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-yxcYRKeEeaKjdK582j3uA" name="str">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_-yxcYhKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-sdZABKeEeaKjdK582j3uA" name="ACM2">
<ownedComment xmi:id="_-seAEBKeEeaKjdK582j3uA">
<body>/**
* 描述
* 现在,有一行括号序列,请你检查这行括号是否配对。
* 输入
* 第一行输入一个数N(0<N<=100),表示有N组测试数据。后面的N行输入多组输入数据,每组输入数据都是一个字符串S(S的长度小于10000,且S不是空串),测试数据组数少于5组。数据保证S中只含有"[","]","(",")"四种字符
* 输出
* 每组输入数据的输出占一行,如果该字符串中所含的括号是配对的,则输出Yes,如果不配对则输出No
* 样例输入
* 3
* [(])
* (])
* ([[]()])
* Stack 类表示后进先出(LIFO)的对象堆栈。它通过五个操作对类 Vector 进行了扩展 ,允许将向量视为堆栈。它提供了通常的 push 和 pop
* 操作,以及取堆栈顶点的 peek 方法、测试堆栈是否为空的 empty 方法、在堆栈中查找项并确定到堆栈顶距离的 search 方法。
* @author daniel
* @email [email protected]
* @time 2016-4-12 下午6:56:30
*/
</body>
</ownedComment>
<ownedOperation xmi:id="_-y9poBKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-y-QsBKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @time 2016-4-12 下午6:30:07
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-y9poRKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-y9pohKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-y9poxKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-y-3wRKeEeaKjdK582j3uA" name="check" visibility="public" isStatic="true">
<ownedComment xmi:id="_-y_e0BKeEeaKjdK582j3uA">
<body>/**
* 实现细节
* @author daniel
* @time 2016-4-12 下午6:59:49
* @param str
* @return
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-y-3whKeEeaKjdK582j3uA" name="str">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
<ownedParameter xmi:id="_-y-3wxKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#boolean"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-senIBKeEeaKjdK582j3uA" name="Acm13">
<ownedComment xmi:id="_-sfOMBKeEeaKjdK582j3uA">
<body>/**
* 描述 无穷数列1,1,2,3,5,8,13,21,34,55...称为Fibonacci数列,它可以递归地定义为 F(n)=1
* ...........(n=1或n=2) F(n)=F(n-1)+F(n-2).....(n>2) 现要你来求第n个斐波纳奇数。(第1个、第二个都为1)
* 输入 第一行是一个整数m(m<5)表示共有m组测试数据 每次测试数据只有一行,且只有一个整形数n(n<20) 输出
* 对每组输入n,输出第n个Fibonacci数 样例输入 3 1 3 5 样例输出 1 2 5
* @author daniel
* @email [email protected]
* @time 2016-4-21 上午11:28:28
*/
</body>
</ownedComment>
<ownedOperation xmi:id="_-zAF4BKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-zAs8BKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @time 2016-4-21 上午10:34:13
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-zAF4RKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-zAF4hKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-zAF4xKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zAs8hKeEeaKjdK582j3uA" name="fib" visibility="public" isStatic="true">
<ownedComment xmi:id="_-zB7EBKeEeaKjdK582j3uA">
<body>/**
* 递归实现
* @author daniel
* @time 2016-4-21 上午11:37:33
* @param n
* @return
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-zAs8xKeEeaKjdK582j3uA" name="n">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
<ownedParameter xmi:id="_-zAs9BKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#long"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zB7ERKeEeaKjdK582j3uA" name="fibB" visibility="private" isStatic="true">
<ownedComment xmi:id="_-zCiIBKeEeaKjdK582j3uA">
<body>/**
* 循环实现 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610,
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-zB7EhKeEeaKjdK582j3uA" name="n">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
<ownedParameter xmi:id="_-zB7ExKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#long"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-sf1QBKeEeaKjdK582j3uA" name="Acm14">
<ownedComment xmi:id="_-sgcUBKeEeaKjdK582j3uA">
<body>/**
* 会场安排问题
* 时间限制:3000 ms | 内存限制:65535 KB
* 难度:4
* 描述
* 学校的小礼堂每天都会有许多活动,有时间这些活动的计划时间会发生冲突,需要选择出一些活动进行举办。小刘的工作就是安排学校小礼堂的活动,每个时间最多安排一个活动。现在小刘有一些活动计划的时间表,他想尽可能的安排更多的活动,请问他该如何安排。
* 输入
* 第一行是一个整型数m(m<100)表示共有m组测试数据。
* 每组测试数据的第一行是一个整数n(1<n<10000)表示该测试数据共有n个活动。
* 随后的n行,每行有两个正整数Bi,Ei(0<=Bi,Ei<10000),分别表示第i个活动的起始与结束时间(Bi<=Ei)
* 输出
* 对于每一组输入,输出最多能够安排的活动数量。
* 每组的输出占一行
* 样例输入
* 2
* 2
* 1 10
* 10 11
* 3
* 1 10
* 10 11
* 11 20
* 样例输出
* 1
* 2
* 提示
* 注意:如果上一个活动在t时间结束,下一个活动最早应该在t+1时间开始
* @author daniel
* @email [email protected]
* @time 2016-4-22 下午4:47:50
*/
</body>
</ownedComment>
<ownedOperation xmi:id="_-zDJMBKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-zDwQBKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @time 2016-4-22 下午3:49:51
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-zDJMRKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-zDJMhKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-zDJMxKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-sgcURKeEeaKjdK582j3uA" name="ActiveTime" visibility="package">
<ownedComment xmi:id="_-shDYBKeEeaKjdK582j3uA">
<body>/**
* 任务时间
* @author daniel
* @email [email protected]
* @time 2016-4-22 下午3:56:28
*/
</body>
</ownedComment>
<ownedAttribute xmi:id="_-zE-YBKeEeaKjdK582j3uA" name="begin" visibility="private">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-zGMgBKeEeaKjdK582j3uA" name="end" visibility="private">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedAttribute>
<ownedOperation xmi:id="_-zHaoBKeEeaKjdK582j3uA" name="getBegin" visibility="public">
<ownedParameter xmi:id="_-zHaoRKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zIBsBKeEeaKjdK582j3uA" name="setBegin" visibility="public">
<ownedParameter xmi:id="_-zIBsRKeEeaKjdK582j3uA" name="begin">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zJP0BKeEeaKjdK582j3uA" name="getEnd" visibility="public">
<ownedParameter xmi:id="_-zJP0RKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zKd8BKeEeaKjdK582j3uA" name="setEnd" visibility="public">
<ownedParameter xmi:id="_-zKd8RKeEeaKjdK582j3uA" name="end">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zLFABKeEeaKjdK582j3uA" name="compareTo" visibility="public">
<ownedComment xmi:id="_-zLsEBKeEeaKjdK582j3uA">
<body>/**
* 按照结束时间从小到大排序
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-zLFARKeEeaKjdK582j3uA" name="o" type="_-sgcURKeEeaKjdK582j3uA"/>
<ownedParameter xmi:id="_-zLFAhKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-shqcBKeEeaKjdK582j3uA" name="Acm8">
<ownedComment xmi:id="_-siRgBKeEeaKjdK582j3uA">
<body>/**
* 一种排序
* 时间限制:3000 ms | 内存限制:65535 KB
* 难度:3
* 描述
* 现在有很多长方形,每一个长方形都有一个编号,这个编号可以重复;还知道这个长方形的宽和长,编号、长、宽都是整数;现在要求按照一下方式排序(默认排序规则都是从小到大);
* 1.按照编号从小到大排序
* 2.对于编号相等的长方形,按照长方形的长排序;
* 3.如果编号和长都相同,按照长方形的宽排序;
* 4.如果编号、长、宽都相同,就只保留一个长方形用于排序,删除多余的长方形;最后排好序按照指定格式显示所有的长方形;
* 输入
* 第一行有一个整数 0<n<10000,表示接下来有n组测试数据;
* 每一组第一行有一个整数 0<m<1000,表示有m个长方形;
* 接下来的m行,每一行有三个数 ,第一个数表示长方形的编号,
* 第二个和第三个数值大的表示长,数值小的表示宽,相等
* 说明这是一个正方形(数据约定长宽与编号都小于10000);
* 输出
* 顺序输出每组数据的所有符合条件的长方形的 编号 长 宽
* 样例输入
* 1
* 8
* 1 1 1
* 1 1 1
* 1 1 2
* 1 2 1
* 1 2 2
* 2 1 1
* 2 1 2
* 2 2 1
* 样例输出
* 1 1 1
* 1 2 1
* 1 2 2
* 2 1 1
* 2 2 1
* I.思路
* II.矫正输入的数据 长宽互换
* II.判断是否已存在,存在则忽略
* II.对所有数据进行排序输出
* @author daniel
* @email [email protected]
* @time 2016-4-15 上午11:43:12
*/
</body>
</ownedComment>
<ownedOperation xmi:id="_-zMTIBKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-zNhQBKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @time 2016-4-15 上午10:59:34
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-zMTIRKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-zMTIhKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-zMTIxKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_-si4kBKeEeaKjdK582j3uA" name="Rectangle" visibility="package">
<ownedComment xmi:id="_-sjfoBKeEeaKjdK582j3uA">
<body>/**
* ID,长宽对象
* @author daniel
* @email [email protected]
* @time 2016-4-15 上午11:47:27
*/
</body>
</ownedComment>
<ownedAttribute xmi:id="_-zOvYBKeEeaKjdK582j3uA" name="id" visibility="private">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-zQkkBKeEeaKjdK582j3uA" name="length" visibility="private">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-zSZwBKeEeaKjdK582j3uA" name="width" visibility="private">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedAttribute>
<ownedOperation xmi:id="_-zTn4BKeEeaKjdK582j3uA" name="getId" visibility="public">
<ownedParameter xmi:id="_-zTn4RKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zU2ABKeEeaKjdK582j3uA" name="setId" visibility="public">
<ownedParameter xmi:id="_-zU2ARKeEeaKjdK582j3uA" name="id">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zWEIBKeEeaKjdK582j3uA" name="getLength" visibility="public">
<ownedParameter xmi:id="_-zWEIRKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zXSQBKeEeaKjdK582j3uA" name="setLength" visibility="public">
<ownedParameter xmi:id="_-zXSQRKeEeaKjdK582j3uA" name="length">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zYgYBKeEeaKjdK582j3uA" name="getWidth" visibility="public">
<ownedParameter xmi:id="_-zYgYRKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zZugBKeEeaKjdK582j3uA" name="setWidth" visibility="public">
<ownedParameter xmi:id="_-zZugRKeEeaKjdK582j3uA" name="width">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zbjsBKeEeaKjdK582j3uA" name="toString" visibility="public">
<ownedParameter xmi:id="_-zbjsRKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zdY4BKeEeaKjdK582j3uA" name="compareTo" visibility="public">
<ownedParameter xmi:id="_-zdY4RKeEeaKjdK582j3uA" name="o" type="_-si4kBKeEeaKjdK582j3uA"/>
<ownedParameter xmi:id="_-zdY4hKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/JavaPrimitiveTypes.library.uml#int"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="_-sjfoRKeEeaKjdK582j3uA" name="report">
<packagedElement xmi:type="uml:Package" xmi:id="_-sjfohKeEeaKjdK582j3uA" name="general">
<packagedElement xmi:type="uml:Package" xmi:id="_-sjfoxKeEeaKjdK582j3uA" name="main">
<packagedElement xmi:type="uml:Class" xmi:id="_-skGsBKeEeaKjdK582j3uA" name="MainReportZongBu">
<ownedComment xmi:id="_-slU0BKeEeaKjdK582j3uA">
<body>/**
* 内存溢出d
* -server -Xms800m -Xmx800m -XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=128m -Djava.awt.headless=true
* 发送文件到总部。导出sql 到excel。excel;
* excel用2003的老格式
* @author daniel
* @email [email protected]
* @time 2015-5-19 上午11:35:12
*/
</body>
</ownedComment>
<ownedAttribute xmi:id="_-zf1IBKeEeaKjdK582j3uA" name="EXCEL_PATH" visibility="public" isStatic="true" isReadOnly="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<defaultValue xmi:type="uml:LiteralString" xmi:id="_-zf1IRKeEeaKjdK582j3uA" value="lib/wantSee20150501_lte_201506101137.xls"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-zhqUBKeEeaKjdK582j3uA" name="fileName" visibility="public" isStatic="true">
<ownedComment xmi:id="_-ziRYBKeEeaKjdK582j3uA">
<body>/**
* 要生成的文件名
*/
</body>
</ownedComment>
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<defaultValue xmi:type="uml:LiteralString" xmi:id="_-zhqURKeEeaKjdK582j3uA" value="transaction"/>
</ownedAttribute>
<ownedAttribute xmi:id="_-zjfgBKeEeaKjdK582j3uA" name="date" visibility="public" isStatic="true">
<ownedComment xmi:id="_-zktoBKeEeaKjdK582j3uA">
<body>/**
* 日期注意格式
*/
</body>
</ownedComment>
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<defaultValue xmi:type="uml:LiteralString" xmi:id="_-zjfgRKeEeaKjdK582j3uA" value="20150501"/>
</ownedAttribute>
<ownedOperation xmi:id="_-zktoRKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedComment xmi:id="_-zl7wBKeEeaKjdK582j3uA">
<body>/**
* @author daniel
* @time 2015-5-19 上午11:35:03
* @param args
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-zktohKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-zktoxKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-zktpBKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-zl7wRKeEeaKjdK582j3uA" name="writeFile" visibility="public" isStatic="true">
<ownedComment xmi:id="_-znJ4BKeEeaKjdK582j3uA">
<body>/**
* 写入txt文件
* @author ghost
* @time 2015-5-19 上午11:48:47
* @param result
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-zl7whKeEeaKjdK582j3uA" name="result">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
<ownedOperation xmi:id="_-znJ4RKeEeaKjdK582j3uA" name="printList" visibility="public" isStatic="true">
<ownedComment xmi:id="_-znw8BKeEeaKjdK582j3uA">
<body>/**
* 将list内容以文本形式输出
* @param list
*/
</body>
</ownedComment>
<ownedParameter xmi:id="_-znJ4hKeEeaKjdK582j3uA" name="list" type="_-vjwURKeEeaKjdK582j3uA"/>
<ownedParameter xmi:id="_-znJ4xKeEeaKjdK582j3uA" name="return" direction="return">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedParameter>
</ownedOperation>
</packagedElement>
</packagedElement>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="_-slU0RKeEeaKjdK582j3uA" name="socket">
<packagedElement xmi:type="uml:Class" xmi:id="_-sl74BKeEeaKjdK582j3uA" name="TestServer">
<ownedOperation xmi:id="_-zoYABKeEeaKjdK582j3uA" name="main" visibility="public" isStatic="true">
<ownedParameter xmi:id="_-zoYARKeEeaKjdK582j3uA" name="args">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-zoYAhKeEeaKjdK582j3uA" value="*"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-zoYAxKeEeaKjdK582j3uA"/>
</ownedParameter>
</ownedOperation>
</packagedElement>