├── section537
├── lesson12755
│ ├── step44236
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step44236.iml
│ ├── step36902
│ │ └── step36902.iml
│ ├── step43997
│ │ └── step43997.iml
│ ├── step43999
│ │ └── step43999.iml
│ ├── step44000
│ │ └── step44000.iml
│ ├── step44001
│ │ └── step44001.iml
│ ├── step44002
│ │ └── step44002.iml
│ ├── step44218
│ │ └── step44218.iml
│ ├── step44219
│ │ └── step44219.iml
│ ├── step44220
│ │ └── step44220.iml
│ ├── step44221
│ │ └── step44221.iml
│ ├── step44234
│ │ └── step44234.iml
│ ├── step44235
│ │ └── step44235.iml
│ └── step45819
│ │ └── step45819.iml
├── lesson12752
│ ├── step36886
│ │ └── step36886.iml
│ ├── step37031
│ │ └── step37031.iml
│ ├── step43990
│ │ └── step43990.iml
│ ├── step43991
│ │ └── step43991.iml
│ ├── step43992
│ │ └── step43992.iml
│ ├── step44212
│ │ └── step44212.iml
│ ├── step44216
│ │ └── step44216.iml
│ ├── step44217
│ │ └── step44217.iml
│ └── step45155
│ │ └── step45155.iml
└── lesson12756
│ ├── step36905
│ └── step36905.iml
│ ├── step44021
│ └── step44021.iml
│ ├── step44022
│ └── step44022.iml
│ ├── step44023
│ └── step44023.iml
│ ├── step44238
│ └── step44238.iml
│ ├── step44252
│ └── step44252.iml
│ ├── step44254
│ └── step44254.iml
│ ├── step44312
│ └── step44312.iml
│ └── step44638
│ └── step44638.iml
├── section541
├── lesson12775
│ ├── step57792
│ │ ├── src
│ │ │ └── Main.java
│ │ └── step57792.iml
│ ├── step36963
│ │ └── step36963.iml
│ ├── step56867
│ │ └── step56867.iml
│ ├── step56868
│ │ └── step56868.iml
│ ├── step56869
│ │ └── step56869.iml
│ ├── step56870
│ │ └── step56870.iml
│ ├── step56871
│ │ └── step56871.iml
│ ├── step56872
│ │ └── step56872.iml
│ ├── step56873
│ │ └── step56873.iml
│ ├── step57777
│ │ └── step57777.iml
│ ├── step57778
│ │ └── step57778.iml
│ ├── step57793
│ │ └── step57793.iml
│ └── step58074
│ │ └── step58074.iml
├── lesson12776
│ ├── step57810
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step57810.iml
│ ├── step58081
│ │ ├── src
│ │ │ └── Main.java
│ │ └── step58081.iml
│ ├── step36968
│ │ └── step36968.iml
│ ├── step56877
│ │ └── step56877.iml
│ ├── step56878
│ │ └── step56878.iml
│ ├── step56879
│ │ └── step56879.iml
│ ├── step56880
│ │ └── step56880.iml
│ ├── step56881
│ │ └── step56881.iml
│ ├── step56882
│ │ └── step56882.iml
│ ├── step56883
│ │ └── step56883.iml
│ ├── step56884
│ │ └── step56884.iml
│ ├── step57794
│ │ └── step57794.iml
│ ├── step57798
│ │ └── step57798.iml
│ ├── step57805
│ │ └── step57805.iml
│ └── step57809
│ │ └── step57809.iml
├── lesson12781
│ ├── step57858
│ │ ├── src
│ │ │ └── Main.java
│ │ └── step57858.iml
│ ├── step57848
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step57848.iml
│ ├── step58088
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step58088.iml
│ ├── step36991
│ │ └── step36991.iml
│ ├── step57012
│ │ └── step57012.iml
│ ├── step57013
│ │ └── step57013.iml
│ ├── step57014
│ │ └── step57014.iml
│ ├── step57015
│ │ └── step57015.iml
│ ├── step57016
│ │ └── step57016.iml
│ ├── step57017
│ │ └── step57017.iml
│ ├── step57842
│ │ └── step57842.iml
│ ├── step57843
│ │ └── step57843.iml
│ ├── step57844
│ │ └── step57844.iml
│ ├── step58108
│ │ └── step58108.iml
│ └── step58193
│ │ └── step58193.iml
└── lesson12777
│ ├── step57838
│ ├── src
│ │ ├── Main.java
│ │ └── MainTest.java
│ └── step57838.iml
│ ├── step36971
│ └── step36971.iml
│ ├── step56885
│ └── step56885.iml
│ ├── step56886
│ └── step56886.iml
│ ├── step56887
│ └── step56887.iml
│ ├── step56888
│ └── step56888.iml
│ ├── step57823
│ └── step57823.iml
│ └── step57827
│ └── step57827.iml
├── section542
├── lesson12784
│ ├── step55689
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ ├── MainTest1.java
│ │ │ ├── MainTest2.java
│ │ │ ├── MainTest3.java
│ │ │ └── AbstractMainTest.java
│ │ └── step55689.iml
│ ├── step55673
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step55673.iml
│ ├── step37000
│ │ └── step37000.iml
│ ├── step53704
│ │ └── step53704.iml
│ ├── step53705
│ │ └── step53705.iml
│ ├── step53713
│ │ └── step53713.iml
│ ├── step53714
│ │ └── step53714.iml
│ ├── step53715
│ │ └── step53715.iml
│ ├── step53716
│ │ └── step53716.iml
│ ├── step55651
│ │ └── step55651.iml
│ ├── step55655
│ │ └── step55655.iml
│ ├── step55656
│ │ └── step55656.iml
│ └── step55663
│ │ └── step55663.iml
├── lesson12783
│ ├── step55646
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step55646.iml
│ ├── step55630
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step55630.iml
│ ├── step36997
│ │ └── step36997.iml
│ ├── step53698
│ │ └── step53698.iml
│ ├── step53699
│ │ └── step53699.iml
│ ├── step53700
│ │ └── step53700.iml
│ ├── step55624
│ │ └── step55624.iml
│ ├── step55625
│ │ └── step55625.iml
│ └── step55629
│ │ └── step55629.iml
├── lesson12785
│ ├── step55715
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── Animal.java
│ │ └── step55715.iml
│ ├── step37003
│ │ └── step37003.iml
│ ├── step53720
│ │ └── step53720.iml
│ ├── step53721
│ │ └── step53721.iml
│ ├── step53722
│ │ └── step53722.iml
│ ├── step55693
│ │ └── step55693.iml
│ ├── step55701
│ │ └── step55701.iml
│ └── step55705
│ │ └── step55705.iml
└── lesson12782
│ ├── step36994
│ └── step36994.iml
│ ├── step53688
│ └── step53688.iml
│ ├── step53689
│ └── step53689.iml
│ ├── step53690
│ └── step53690.iml
│ ├── step55617
│ └── step55617.iml
│ ├── step55618
│ └── step55618.iml
│ ├── step55619
│ └── step55619.iml
│ └── step55623
│ └── step55623.iml
├── .gitignore
├── section539
├── lesson12766
│ ├── step49992
│ │ ├── src
│ │ │ ├── Direction.java
│ │ │ ├── Main.java
│ │ │ ├── MainTest.java
│ │ │ └── Robot.java
│ │ └── step49992.iml
│ ├── step36936
│ │ └── step36936.iml
│ ├── step47245
│ │ └── step47245.iml
│ ├── step47246
│ │ └── step47246.iml
│ ├── step47247
│ │ └── step47247.iml
│ ├── step47248
│ │ └── step47248.iml
│ ├── step47249
│ │ └── step47249.iml
│ ├── step47250
│ │ └── step47250.iml
│ ├── step47251
│ │ └── step47251.iml
│ ├── step49910
│ │ └── step49910.iml
│ ├── step49914
│ │ └── step49914.iml
│ └── step49915
│ │ └── step49915.iml
├── lesson14513
│ ├── step50386
│ │ ├── src
│ │ │ ├── Label.java
│ │ │ ├── TextAnalyzer.java
│ │ │ └── Main.java
│ │ └── step50386.iml
│ ├── step50005
│ │ ├── src
│ │ │ └── Main.java
│ │ └── step50005.iml
│ ├── step49950
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step49950.iml
│ ├── step43558
│ │ └── step43558.iml
│ ├── step47272
│ │ └── step47272.iml
│ ├── step47273
│ │ └── step47273.iml
│ ├── step47274
│ │ └── step47274.iml
│ ├── step49918
│ │ └── step49918.iml
│ └── step49925
│ │ └── step49925.iml
├── lesson12764
│ ├── step36930
│ │ └── step36930.iml
│ ├── step47234
│ │ └── step47234.iml
│ ├── step47235
│ │ └── step47235.iml
│ ├── step47236
│ │ └── step47236.iml
│ ├── step47237
│ │ └── step47237.iml
│ ├── step47238
│ │ └── step47238.iml
│ ├── step47239
│ │ └── step47239.iml
│ ├── step47240
│ │ └── step47240.iml
│ ├── step49885
│ │ └── step49885.iml
│ └── step49896
│ │ └── step49896.iml
├── lesson12765
│ ├── step36933
│ │ └── step36933.iml
│ ├── step47241
│ │ └── step47241.iml
│ ├── step47243
│ │ └── step47243.iml
│ ├── step47244
│ │ └── step47244.iml
│ ├── step49900
│ │ └── step49900.iml
│ ├── step49909
│ │ └── step49909.iml
│ └── step124114
│ │ └── step124114.iml
└── lesson12769
│ ├── step36945
│ └── step36945.iml
│ ├── step47261
│ └── step47261.iml
│ ├── step47262
│ └── step47262.iml
│ ├── step47263
│ └── step47263.iml
│ ├── step47264
│ └── step47264.iml
│ ├── step47597
│ └── step47597.iml
│ ├── step49916
│ └── step49916.iml
│ ├── step49917
│ └── step49917.iml
│ └── step49971
│ ├── src
│ └── Main.java
│ └── step49971.iml
├── section540
├── lesson12774
│ ├── step53996
│ │ ├── src
│ │ │ └── Main.java
│ │ └── step53996.iml
│ ├── step53619
│ │ ├── src
│ │ │ └── Main.java
│ │ └── step53619.iml
│ ├── step36960
│ │ └── step36960.iml
│ ├── step47526
│ │ └── step47526.iml
│ ├── step47527
│ │ └── step47527.iml
│ ├── step47528
│ │ └── step47528.iml
│ ├── step47529
│ │ └── step47529.iml
│ ├── step53564
│ │ └── step53564.iml
│ └── step53571
│ │ └── step53571.iml
├── lesson12772
│ ├── step53596
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step53596.iml
│ ├── step53676
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step53676.iml
│ ├── step36954
│ │ └── step36954.iml
│ ├── step47511
│ │ └── step47511.iml
│ ├── step47512
│ │ └── step47512.iml
│ ├── step47513
│ │ └── step47513.iml
│ ├── step47514
│ │ └── step47514.iml
│ ├── step47515
│ │ └── step47515.iml
│ ├── step53505
│ │ └── step53505.iml
│ └── step53507
│ │ └── step53507.iml
└── lesson12773
│ ├── step53606
│ ├── src
│ │ ├── RobotConnectionManager.java
│ │ ├── Main.java
│ │ ├── RobotConnection.java
│ │ ├── RobotConnectionException.java
│ │ └── RobotConnectionManagerImpl.java
│ └── step53606.iml
│ ├── step36957
│ └── step36957.iml
│ ├── step47520
│ └── step47520.iml
│ ├── step47521
│ └── step47521.iml
│ ├── step47522
│ └── step47522.iml
│ ├── step53508
│ └── step53508.iml
│ └── step53509
│ └── step53509.iml
├── section538
├── lesson12759
│ ├── step47533
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step47533.iml
│ ├── step47538
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step47538.iml
│ ├── step47519
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step47519.iml
│ ├── step47316
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step47316.iml
│ ├── step36914
│ │ └── step36914.iml
│ ├── step44040
│ │ └── step44040.iml
│ ├── step44041
│ │ └── step44041.iml
│ ├── step44042
│ │ └── step44042.iml
│ ├── step44043
│ │ └── step44043.iml
│ ├── step44044
│ │ └── step44044.iml
│ ├── step44064
│ │ └── step44064.iml
│ ├── step44065
│ │ └── step44065.iml
│ ├── step47265
│ │ └── step47265.iml
│ ├── step47281
│ │ └── step47281.iml
│ └── step122753
│ │ └── step122753.iml
├── lesson12760
│ ├── step47682
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step47682.iml
│ ├── step47329
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step47329.iml
│ ├── step36918
│ │ └── step36918.iml
│ ├── step44066
│ │ └── step44066.iml
│ ├── step44067
│ │ └── step44067.iml
│ ├── step44068
│ │ └── step44068.iml
│ ├── step44069
│ │ └── step44069.iml
│ ├── step47293
│ │ └── step47293.iml
│ └── step47294
│ │ └── step47294.iml
├── lesson12762
│ ├── step47721
│ │ ├── src
│ │ │ └── Main.java
│ │ └── step47721.iml
│ ├── step47334
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step47334.iml
│ ├── step47347
│ │ ├── src
│ │ │ ├── Main.java
│ │ │ └── MainTest.java
│ │ └── step47347.iml
│ ├── step36924
│ │ └── step36924.iml
│ ├── step44087
│ │ └── step44087.iml
│ ├── step44088
│ │ └── step44088.iml
│ ├── step44089
│ │ └── step44089.iml
│ ├── step44090
│ │ └── step44090.iml
│ ├── step47307
│ │ └── step47307.iml
│ └── step47308
│ │ └── step47308.iml
└── lesson12761
│ ├── step47333
│ ├── src
│ │ ├── Main.java
│ │ └── MainTest.java
│ └── step47333.iml
│ ├── step36921
│ └── step36921.iml
│ ├── step44081
│ └── step44081.iml
│ ├── step44082
│ └── step44082.iml
│ ├── step44083
│ └── step44083.iml
│ ├── step44084
│ └── step44084.iml
│ ├── step44085
│ └── step44085.iml
│ ├── step44086
│ └── step44086.iml
│ ├── step47298
│ └── step47298.iml
│ └── step47306
│ └── step47306.iml
├── .idea
├── vcs.xml
└── misc.xml
├── course187.iml
└── Sandbox
└── Sandbox.iml
/section537/lesson12755/step44236/src/Main.java:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/section541/lesson12775/step57792/src/Main.java:
--------------------------------------------------------------------------------
1 | class Pair {
2 |
3 | }
--------------------------------------------------------------------------------
/section541/lesson12776/step57810/src/Main.java:
--------------------------------------------------------------------------------
1 | public class Main {
2 | }
--------------------------------------------------------------------------------
/section541/lesson12781/step57858/src/Main.java:
--------------------------------------------------------------------------------
1 | public class Main {
2 | }
--------------------------------------------------------------------------------
/section542/lesson12784/step55689/src/Main.java:
--------------------------------------------------------------------------------
1 | public class Main {
2 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/*
2 | !.idea/stepik_study_project.xml
3 | out/
4 | /*/*/*/src/Main.java
5 |
--------------------------------------------------------------------------------
/section539/lesson12766/step49992/src/Direction.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 | public enum Direction {
3 | UP, DOWN, LEFT, RIGHT
4 | }
--------------------------------------------------------------------------------
/section542/lesson12783/step55646/src/Main.java:
--------------------------------------------------------------------------------
1 | public class Main {
2 | public static void main(String... args) {
3 |
4 | }
5 | }
--------------------------------------------------------------------------------
/section539/lesson14513/step50386/src/Label.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 | /**
3 | * @author meanmail
4 | */
5 | public enum Label {
6 | NEGATIVE_TEXT, SPAM, TOO_LONG, OK
7 | }
8 |
--------------------------------------------------------------------------------
/section540/lesson12774/step53996/src/Main.java:
--------------------------------------------------------------------------------
1 | // implement UntrustworthyMailWorker, Spy, Inspector, Thief, StolenPackageException, IllegalPackageException as public static classes here
--------------------------------------------------------------------------------
/section538/lesson12759/step47533/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public static int leapYearCount(int year) {
4 | return year;
5 | }
6 | //Stepik code: end
7 | }
8 |
--------------------------------------------------------------------------------
/section539/lesson14513/step50386/src/TextAnalyzer.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 | /**
3 | * @author meanmail
4 | */
5 | public interface TextAnalyzer {
6 | Label processText(String text);
7 | }
8 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/section538/lesson12760/step47682/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public static char charExpression(int a) {
4 | return '?' - 1;
5 | }
6 | //Stepik code: end
7 | }
8 |
--------------------------------------------------------------------------------
/section540/lesson12774/step53619/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public static void configureLogging() {
4 | // your implementation here
5 | }
6 | //Stepik code: end
7 | }
8 |
--------------------------------------------------------------------------------
/section539/lesson14513/step50005/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public class AsciiCharSequence /* extends/implements */ {
4 | // implementation
5 | }
6 | //Stepik code: end
7 | }
8 |
--------------------------------------------------------------------------------
/section540/lesson12772/step53596/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public static double sqrt(double x) {
4 | return 0; // your implementation here
5 | }
6 | //Stepik code: end
7 | }
8 |
--------------------------------------------------------------------------------
/section540/lesson12773/step53606/src/RobotConnectionManager.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 | /**
3 | * @author meanmail
4 | */
5 | public interface RobotConnectionManager {
6 | RobotConnection getConnection();
7 | }
8 |
--------------------------------------------------------------------------------
/section542/lesson12784/step55689/src/MainTest1.java:
--------------------------------------------------------------------------------
1 | /**
2 | * @author meanmail
3 | */
4 | public class MainTest1 extends AbstractMainTest {
5 | public MainTest1() {
6 | super("1 2 3", "6.000000");
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/section542/lesson12784/step55689/src/MainTest2.java:
--------------------------------------------------------------------------------
1 | /**
2 | * @author meanmail
3 | */
4 | public class MainTest2 extends AbstractMainTest {
5 | public MainTest2() {
6 | super("a1 b2 c3", "0.000000");
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/section538/lesson12762/step47721/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public static String printTextPerRole(String[] roles, String[] textLines) {
4 | return "";
5 | }
6 | //Stepik code: end
7 | }
8 |
--------------------------------------------------------------------------------
/section539/lesson14513/step50386/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public Label checkLabels(TextAnalyzer[] analyzers, String text) {
4 | return Label.OK;
5 | }
6 | //Stepik code: end
7 | }
8 |
--------------------------------------------------------------------------------
/section538/lesson12759/step47538/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public static boolean doubleExpression(double a, double b, double c) {
4 | return a + b == c;
5 | }
6 | //Stepik code: end
7 | }
8 |
--------------------------------------------------------------------------------
/section540/lesson12772/step53676/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public static String getCallerClassAndMethodName() {
4 | return null; // your implementation here
5 | }
6 | //Stepik code: end
7 | }
8 |
--------------------------------------------------------------------------------
/section542/lesson12784/step55689/src/MainTest3.java:
--------------------------------------------------------------------------------
1 | /**
2 | * @author meanmail
3 | */
4 | public class MainTest3 extends AbstractMainTest {
5 | public MainTest3() {
6 | super("-1e3\n18 .111 11bbb", "-981.889000");
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/section538/lesson12759/step47519/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public static boolean booleanExpression(boolean a, boolean b, boolean c, boolean d) {
4 | return a & b & c & d;
5 | }
6 | //Stepik code: end
7 | }
8 |
--------------------------------------------------------------------------------
/section539/lesson12766/step49992/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public static void moveRobot(Robot robot, int toX, int toY) {
4 | robot.stepForward(); // your implementation here
5 | }
6 | //Stepik code: end
7 | }
8 |
--------------------------------------------------------------------------------
/section540/lesson12773/step53606/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public static void moveRobot(RobotConnectionManager robotConnectionManager, int toX, int toY) {
4 | // your implementation here
5 | }
6 | //Stepik code: end
7 | }
8 |
--------------------------------------------------------------------------------
/section542/lesson12785/step55715/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public static Animal[] deserializeAnimalArray(byte[] data) {
4 | // your implementation here
5 | return new Animal[0];
6 | }
7 | //Stepik code: end
8 | }
9 |
--------------------------------------------------------------------------------
/section540/lesson12773/step53606/src/RobotConnection.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 | /**
3 | * @author meanmail
4 | */
5 | public interface RobotConnection extends AutoCloseable {
6 | void moveRobotTo(int x, int y);
7 |
8 | @Override
9 | void close();
10 | }
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step58081/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Set;
2 |
3 | class Main {
4 | //Stepik code: start
5 | public static Set symmetricDifference(Set extends T> set1, Set extends T> set2) {
6 | return null;
7 | }
8 | //Stepik code: end
9 | }
10 |
--------------------------------------------------------------------------------
/section541/lesson12781/step57848/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.stream.IntStream;
2 |
3 | class Main {
4 | //Stepik code: start
5 | public static IntStream pseudoRandomStream(int seed) {
6 | return null; // your implementation here
7 | }
8 | //Stepik code: end
9 | }
10 |
--------------------------------------------------------------------------------
/section539/lesson14513/step49950/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.function.DoubleUnaryOperator;
2 |
3 | class Main {
4 | //Stepik code: start
5 | public static double integrate(DoubleUnaryOperator f, double a, double b) {
6 | return f.applyAsDouble(a);
7 | }
8 | //Stepik code: end
9 | }
10 |
--------------------------------------------------------------------------------
/section537/lesson12755/step44236/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.Test;
4 |
5 | /**
6 | * @author meanmail
7 | */
8 | public class MainTest {
9 | @Test(timeout = 5000)
10 | public void mainTest() throws Throwable {
11 | TestUtils.assertOutputEquals("It's alive! It's alive!");
12 | }
13 | }
--------------------------------------------------------------------------------
/section542/lesson12783/step55630/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.io.IOException;
2 | import java.io.InputStream;
3 |
4 | class Main {
5 | //Stepik code: start
6 | public static int checkSumOfStream(InputStream inputStream) throws IOException {
7 | // your implementation here
8 | return 0;
9 | }
10 | //Stepik code: end
11 | }
12 |
--------------------------------------------------------------------------------
/course187.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/section542/lesson12784/step55673/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.io.IOException;
2 | import java.io.InputStream;
3 | import java.nio.charset.Charset;
4 |
5 | class Main {
6 | //Stepik code: start
7 | public static String readAsString(InputStream inputStream, Charset charset) throws IOException {
8 | // your implementation here
9 | return "";
10 | }
11 | //Stepik code: end
12 | }
13 |
--------------------------------------------------------------------------------
/section540/lesson12773/step53606/src/RobotConnectionException.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 | /**
3 | * @author meanmail
4 | */
5 | public class RobotConnectionException extends RuntimeException {
6 | public RobotConnectionException(String message) {
7 | super(message);
8 | }
9 |
10 | public RobotConnectionException(String message, Throwable cause) {
11 | super(message, cause);
12 | }
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/section538/lesson12760/step47329/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 |
4 | /**
5 | * Checks if given value is a power of two.
6 | *
7 | * @param value any number
8 | * @return true when value is power of two, false otherwise
9 | */
10 | public static boolean isPowerOfTwo(int value) {
11 | return false; // you implementation here
12 | }
13 | //Stepik code: end
14 | }
15 |
--------------------------------------------------------------------------------
/section538/lesson12761/step47333/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 |
4 | /**
5 | * Checks if given text is a palindrome.
6 | *
7 | * @param text any string
8 | * @return true when text is a palindrome, false otherwise
9 | */
10 | public static boolean isPalindrome(String text) {
11 | return false; // your implementation here
12 | }
13 | //Stepik code: end
14 | }
15 |
--------------------------------------------------------------------------------
/section538/lesson12762/step47334/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.math.BigInteger;
2 |
3 | class Main {
4 | //Stepik code: start
5 |
6 | /**
7 | * Calculates factorial of given value.
8 | *
9 | * @param value positive number
10 | * @return factorial of value
11 | */
12 | public static BigInteger factorial(int value) {
13 | return BigInteger.ZERO; // your implementation here
14 | }
15 | //Stepik code: end
16 | }
17 |
--------------------------------------------------------------------------------
/section538/lesson12762/step47347/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 |
4 | /**
5 | * Merges two given sorted arrays into one
6 | *
7 | * @param a1 first sorted array
8 | * @param a2 second sorted array
9 | * @return new array containing all elements from a1 and a2, sorted
10 | */
11 | public static int[] mergeArrays(int[] a1, int[] a2) {
12 | return a1; // your implementation here
13 | }
14 | //Stepik code: end
15 | }
16 |
--------------------------------------------------------------------------------
/section541/lesson12781/step58088/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Comparator;
2 | import java.util.function.BiConsumer;
3 | import java.util.stream.Stream;
4 |
5 | class Main {
6 | //Stepik code: start
7 | public static void findMinMax(
8 | Stream extends T> stream,
9 | Comparator super T> order,
10 | BiConsumer super T, ? super T> minMaxConsumer) {
11 |
12 | // your implementation here
13 | }
14 | //Stepik code: end
15 | }
16 |
--------------------------------------------------------------------------------
/section538/lesson12759/step47316/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 |
4 | /**
5 | * Flips one bit of the given value.
6 | *
7 | * @param value any number
8 | * @param bitIndex index of the bit to flip, 1 <= bitIndex <= 32
9 | * @return new value with one bit flipped
10 | */
11 | public static int flipBit(int value, int bitIndex) {
12 | return value; // put your implementation here
13 | }
14 | //Stepik code: end
15 | }
16 |
--------------------------------------------------------------------------------
/section541/lesson12777/step57838/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.function.Function;
2 | import java.util.function.Predicate;
3 |
4 | class Main {
5 | //Stepik code: start
6 | public static Function ternaryOperator(
7 | Predicate super T> condition,
8 | Function super T, ? extends U> ifTrue,
9 | Function super T, ? extends U> ifFalse) {
10 |
11 | return null; // your implementation here
12 |
13 | }
14 | //Stepik code: end
15 | }
16 |
--------------------------------------------------------------------------------
/section537/lesson12752/step36886/step36886.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12752/step37031/step37031.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12752/step43990/step43990.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12752/step43991/step43991.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12752/step43992/step43992.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12752/step44212/step44212.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12752/step44216/step44216.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12752/step44217/step44217.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12752/step45155/step45155.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step36902/step36902.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step43997/step43997.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step43999/step43999.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step44000/step44000.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step44001/step44001.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step44002/step44002.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step44218/step44218.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step44219/step44219.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step44220/step44220.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step44221/step44221.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step44234/step44234.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step44235/step44235.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12755/step45819/step45819.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12756/step36905/step36905.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12756/step44021/step44021.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12756/step44022/step44022.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12756/step44023/step44023.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12756/step44238/step44238.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12756/step44252/step44252.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12756/step44254/step44254.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12756/step44312/step44312.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section537/lesson12756/step44638/step44638.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12759/step36914/step36914.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12759/step44040/step44040.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12759/step44041/step44041.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12759/step44042/step44042.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12759/step44043/step44043.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12759/step44044/step44044.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12759/step44064/step44064.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12759/step44065/step44065.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12759/step47265/step47265.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12759/step47281/step47281.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12760/step36918/step36918.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12760/step44066/step44066.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12760/step44067/step44067.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12760/step44068/step44068.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12760/step44069/step44069.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12760/step47293/step47293.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12760/step47294/step47294.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12761/step36921/step36921.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12761/step44081/step44081.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12761/step44082/step44082.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12761/step44083/step44083.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12761/step44084/step44084.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12761/step44085/step44085.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12761/step44086/step44086.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12761/step47298/step47298.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12761/step47306/step47306.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12762/step36924/step36924.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12762/step44087/step44087.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12762/step44088/step44088.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12762/step44089/step44089.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12762/step44090/step44090.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12762/step47307/step47307.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12762/step47308/step47308.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12764/step36930/step36930.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12764/step47234/step47234.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12764/step47235/step47235.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12764/step47236/step47236.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12764/step47237/step47237.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12764/step47238/step47238.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12764/step47239/step47239.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12764/step47240/step47240.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12764/step49885/step49885.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12764/step49896/step49896.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12765/step36933/step36933.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12765/step47241/step47241.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12765/step47243/step47243.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12765/step47244/step47244.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12765/step49900/step49900.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12765/step49909/step49909.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12766/step36936/step36936.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12766/step47245/step47245.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12766/step47246/step47246.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12766/step47247/step47247.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12766/step47248/step47248.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12766/step47249/step47249.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12766/step47250/step47250.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12766/step47251/step47251.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12766/step49910/step49910.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12766/step49914/step49914.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12766/step49915/step49915.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12769/step36945/step36945.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12769/step47261/step47261.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12769/step47262/step47262.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12769/step47263/step47263.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12769/step47264/step47264.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12769/step47597/step47597.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12769/step49916/step49916.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12769/step49917/step49917.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson14513/step43558/step43558.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson14513/step47272/step47272.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson14513/step47273/step47273.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson14513/step47274/step47274.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson14513/step49918/step49918.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson14513/step49925/step49925.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12772/step36954/step36954.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12772/step47511/step47511.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12772/step47512/step47512.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12772/step47513/step47513.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12772/step47514/step47514.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12772/step47515/step47515.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12772/step53505/step53505.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12772/step53507/step53507.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12773/step36957/step36957.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12773/step47520/step47520.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12773/step47521/step47521.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12773/step47522/step47522.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12773/step53508/step53508.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12773/step53509/step53509.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12774/step36960/step36960.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12774/step47526/step47526.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12774/step47527/step47527.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12774/step47528/step47528.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12774/step47529/step47529.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12774/step53564/step53564.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12774/step53571/step53571.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section540/lesson12774/step53996/step53996.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12775/step36963/step36963.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12775/step56867/step56867.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12775/step56868/step56868.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12775/step56869/step56869.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12775/step56870/step56870.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12775/step56871/step56871.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12775/step56872/step56872.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12775/step56873/step56873.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12775/step57777/step57777.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12775/step57778/step57778.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12775/step57793/step57793.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12775/step58074/step58074.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step36968/step36968.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step56877/step56877.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step56878/step56878.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step56879/step56879.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step56880/step56880.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step56881/step56881.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step56882/step56882.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step56883/step56883.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step56884/step56884.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step57794/step57794.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step57798/step57798.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step57805/step57805.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12776/step57809/step57809.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12777/step36971/step36971.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12777/step56885/step56885.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12777/step56886/step56886.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12777/step56887/step56887.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12777/step56888/step56888.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12777/step57823/step57823.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12777/step57827/step57827.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12781/step36991/step36991.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12781/step57012/step57012.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12781/step57013/step57013.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12781/step57014/step57014.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12781/step57015/step57015.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12781/step57016/step57016.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12781/step57017/step57017.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12781/step57842/step57842.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12781/step57843/step57843.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12781/step57844/step57844.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12781/step58108/step58108.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section541/lesson12781/step58193/step58193.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12782/step36994/step36994.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12782/step53688/step53688.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12782/step53689/step53689.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12782/step53690/step53690.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12782/step55617/step55617.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12782/step55618/step55618.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12782/step55619/step55619.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12782/step55623/step55623.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12783/step36997/step36997.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12783/step53698/step53698.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12783/step53699/step53699.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12783/step53700/step53700.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12783/step55624/step55624.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12783/step55625/step55625.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12783/step55629/step55629.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12784/step37000/step37000.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12784/step53704/step53704.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12784/step53705/step53705.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12784/step53713/step53713.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12784/step53714/step53714.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12784/step53715/step53715.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12784/step53716/step53716.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12784/step55651/step55651.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12784/step55655/step55655.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12784/step55656/step55656.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12784/step55663/step55663.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12785/step37003/step37003.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12785/step53720/step53720.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12785/step53721/step53721.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12785/step53722/step53722.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12785/step55693/step55693.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12785/step55701/step55701.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section542/lesson12785/step55705/step55705.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section538/lesson12759/step122753/step122753.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12765/step124114/step124114.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/section539/lesson12769/step49971/src/Main.java:
--------------------------------------------------------------------------------
1 | class Main {
2 | //Stepik code: start
3 | public final class ComplexNumber {
4 | private final double re;
5 | private final double im;
6 |
7 | public ComplexNumber(double re, double im) {
8 | this.re = re;
9 | this.im = im;
10 | }
11 |
12 | public double getRe() {
13 | return re;
14 | }
15 |
16 | public double getIm() {
17 | return im;
18 | }
19 | }
20 | //Stepik code: end
21 | }
22 |
--------------------------------------------------------------------------------
/section542/lesson12785/step55715/src/Animal.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import java.io.Serializable;
4 | import java.util.Objects;
5 |
6 | /**
7 | * @author meanmail
8 | */
9 | class Animal implements Serializable {
10 | private final String name;
11 |
12 | public Animal(String name) {
13 | this.name = name;
14 | }
15 |
16 | @Override
17 | public boolean equals(Object obj) {
18 | if (obj instanceof Animal) {
19 | return Objects.equals(name, ((Animal) obj).name);
20 | }
21 | return false;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/section541/lesson12776/step57810/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.Test;
4 |
5 | import java.io.ByteArrayInputStream;
6 | import java.io.ByteArrayOutputStream;
7 | import java.io.PrintStream;
8 |
9 | import static org.junit.Assert.assertEquals;
10 |
11 | /**
12 | * @author meanmail
13 | */
14 | public class MainTest {
15 |
16 | @Test(timeout = 8000)
17 | public void sample1() throws Throwable {
18 | try (ByteArrayInputStream in = new ByteArrayInputStream("1 2 3 4 5 6 7".getBytes())) {
19 | try (ByteArrayOutputStream out = new ByteArrayOutputStream()) {
20 | TestUtils.runMain(in, new PrintStream(out));
21 |
22 | assertEquals("6 4 2", out.toString().trim());
23 | }
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/Sandbox/Sandbox.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/section542/lesson12783/step55630/step55630.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/section542/lesson12784/step55673/step55673.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/section541/lesson12781/step57858/step57858.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section537/lesson12755/step44236/step44236.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section538/lesson12759/step47316/step47316.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section538/lesson12759/step47519/step47519.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section538/lesson12759/step47533/step47533.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section538/lesson12759/step47538/step47538.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section538/lesson12760/step47329/step47329.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section538/lesson12760/step47682/step47682.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section538/lesson12761/step47333/step47333.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section538/lesson12762/step47334/step47334.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section538/lesson12762/step47347/step47347.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section538/lesson12762/step47721/step47721.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section539/lesson12766/step49992/step49992.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section539/lesson12769/step49971/step49971.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section539/lesson14513/step49950/step49950.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section539/lesson14513/step50005/step50005.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section539/lesson14513/step50386/step50386.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section540/lesson12772/step53596/step53596.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section540/lesson12772/step53676/step53676.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section540/lesson12773/step53606/step53606.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section540/lesson12774/step53619/step53619.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section541/lesson12775/step57792/step57792.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section541/lesson12776/step57810/step57810.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section541/lesson12776/step58081/step58081.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section541/lesson12777/step57838/step57838.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section541/lesson12781/step57848/step57848.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section541/lesson12781/step58088/step58088.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section542/lesson12783/step55646/step55646.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section542/lesson12784/step55689/step55689.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section542/lesson12785/step55715/step55715.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/section542/lesson12784/step55673/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.Test;
4 |
5 | import java.io.ByteArrayInputStream;
6 | import java.nio.charset.StandardCharsets;
7 |
8 | import static org.junit.Assert.assertEquals;
9 |
10 | /**
11 | * @author meanmail
12 | */
13 | public class MainTest {
14 | @Test(timeout = 8000)
15 | public void readAsStringANSII() throws Exception {
16 | ByteArrayInputStream input = new ByteArrayInputStream(new byte[]{48, 49, 50, 51});
17 | String actual = Main.readAsString(input, StandardCharsets.US_ASCII);
18 |
19 | assertEquals("0123", actual);
20 | }
21 |
22 | @Test(timeout = 8000)
23 | public void readAsStringUTF16() throws Exception {
24 | ByteArrayInputStream input = new ByteArrayInputStream(new byte[]{0x04, 0x10, 0x04, 0x11});
25 | String actual = Main.readAsString(input, StandardCharsets.UTF_16);
26 |
27 | assertEquals("\u0410\u0411", actual);
28 | }
29 | }
--------------------------------------------------------------------------------
/section542/lesson12783/step55630/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.Test;
4 |
5 | import java.io.ByteArrayInputStream;
6 | import java.io.IOException;
7 |
8 | import static org.junit.Assert.assertEquals;
9 |
10 | /**
11 | * @author meanmail
12 | */
13 | public class MainTest {
14 | private static final byte[][] testSets = new byte[][]{
15 | {10, 20, 30, 50, 1, 125},
16 | {111, -45, 0, -2, 58, -1},
17 | {0, 0, 0, 0, 0, 0},
18 | {-1, -1, -1, -1, -1, -1},
19 | {0x33, 0x45, 0x01},
20 | {},
21 | {-1}
22 | };
23 | private static final int[] testResults = new int[]{71, 931, 0, 5397, 71, 0, 255};
24 |
25 | @Test(timeout = 8000)
26 | public void checkSumOfStreamSample1() throws IOException {
27 | for (int i = 0; i < testSets.length; i++) {
28 | int checkSum = Main.checkSumOfStream(new ByteArrayInputStream(testSets[i]));
29 | assertEquals(testResults[i], checkSum);
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/section540/lesson12772/step53676/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 |
9 | import static org.junit.Assert.assertEquals;
10 |
11 | /**
12 | * @author meanmail
13 | */
14 | public class MainTest {
15 | private static Method getCallerClassAndMethodName;
16 | private static Class> mainClass;
17 |
18 | @BeforeClass
19 | public static void beforeClass() {
20 | mainClass = TestUtils.getUserClass("Main");
21 |
22 | getCallerClassAndMethodName = TestUtils.getMethod(mainClass,
23 | "getCallerClassAndMethodName",
24 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
25 | String.class);
26 | }
27 |
28 | @Test(timeout = 8000)
29 | public void getCallerClassAndMethodNameNotNull1() throws Throwable {
30 | String classMethod = (String) TestUtils.invokeMethod(mainClass, getCallerClassAndMethodName);
31 | assertEquals("sun.reflect.NativeMethodAccessorImpl#invoke", classMethod);
32 | }
33 | }
--------------------------------------------------------------------------------
/section538/lesson12759/step47533/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 |
9 | import static org.junit.Assert.assertEquals;
10 |
11 | /**
12 | * @author meanmail
13 | */
14 | public class MainTest {
15 | private static final int[][] leaps = new int[][]{
16 | {1, 0},
17 | {4, 1},
18 | {100, 24},
19 | {2017, 489},
20 | {2187, 530},
21 | {400, 97}
22 | };
23 | private static Method leapYearCount;
24 | private static Class> mainClass;
25 |
26 | @BeforeClass
27 | public static void beforeClass() {
28 | mainClass = TestUtils.getUserClass("Main");
29 | leapYearCount = TestUtils.getMethod(mainClass,
30 | "leapYearCount",
31 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
32 | Integer.TYPE, Integer.TYPE);
33 | }
34 |
35 | @Test(timeout = 2000)
36 | public void leapYearCount() throws Throwable {
37 | for (int[] leap : leaps) {
38 | String message = String.format("Main.leapYearCount(%s)", leap[0]);
39 | assertEquals(message, leap[1], TestUtils.invokeMethod(mainClass, leapYearCount, leap[0]));
40 | }
41 | }
42 |
43 | }
--------------------------------------------------------------------------------
/section538/lesson12759/step47519/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.Test;
4 |
5 | import java.lang.reflect.Method;
6 | import java.lang.reflect.Modifier;
7 |
8 | import static org.junit.Assert.assertEquals;
9 |
10 | /**
11 | * @author meanmail
12 | */
13 | public class MainTest {
14 |
15 | @Test(timeout = 2000)
16 | public void booleanExpression() throws Throwable {
17 | Class> mainClass = TestUtils.getUserClass("Main");
18 | for (int i = 0; i < 16; i++) {
19 | boolean a = (i % 2) == 1;
20 | boolean b = ((i >> 1) % 2) == 1;
21 | boolean c = ((i >> 2) % 2) == 1;
22 | boolean d = ((i >> 3) % 2) == 1;
23 |
24 | Class booleanClass = Boolean.TYPE;
25 | Method booleanExpression = TestUtils.getMethod(mainClass,
26 | "booleanExpression",
27 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
28 | booleanClass,
29 | booleanClass, booleanClass, booleanClass, booleanClass);
30 |
31 | boolean actualValue = (boolean) TestUtils.invokeMethod(mainClass, booleanExpression, a, b, c, d);
32 | boolean expectedValue = Integer.bitCount(i) == 2;
33 |
34 | String message = String.format("Main.booleanExpression(%b, %b, %b, %b)", a, b, c, d);
35 | assertEquals(message, expectedValue, actualValue);
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/section540/lesson12772/step53596/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 |
9 | import static org.junit.Assert.assertEquals;
10 | import static org.junit.Assert.fail;
11 |
12 | /**
13 | * @author meanmail
14 | */
15 | public class MainTest {
16 | private static Method sqrt;
17 | private static Class> mainClass;
18 |
19 | @BeforeClass
20 | public static void beforeClass() {
21 | mainClass = TestUtils.getUserClass("Main");
22 |
23 | sqrt = TestUtils.getMethod(mainClass,
24 | "sqrt",
25 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
26 | Double.TYPE,
27 | Double.TYPE);
28 | }
29 |
30 | @Test(timeout = 8000)
31 | public void sqrtException() throws Exception {
32 | try {
33 | Main.sqrt(-100);
34 | } catch (IllegalArgumentException e) {
35 | String message = "Main.sqrt(-100);\nIllegalArgumentException.getMessage()";
36 | assertEquals(message, "Expected non-negative number, got -100.0", e.getMessage());
37 | return;
38 | }
39 |
40 | fail("Main.sqrt(-100). Expected IllegalArgumentException");
41 | }
42 |
43 | @Test(timeout = 8000)
44 | public void sqrtNotException() throws Throwable {
45 | double value = (double) TestUtils.invokeMethod(mainClass, sqrt, 100);
46 |
47 | assertEquals(10.0, value, 0);
48 | }
49 |
50 | }
--------------------------------------------------------------------------------
/section542/lesson12784/step55689/src/AbstractMainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.AfterClass;
4 | import org.junit.BeforeClass;
5 | import org.junit.Test;
6 |
7 | import java.io.ByteArrayInputStream;
8 | import java.io.ByteArrayOutputStream;
9 | import java.io.IOException;
10 | import java.io.PrintStream;
11 |
12 | import static org.junit.Assert.assertEquals;
13 |
14 | /**
15 | * @author meanmail
16 | */
17 | public abstract class AbstractMainTest {
18 | private static ByteArrayOutputStream outStream;
19 | private final String input;
20 | private final String output;
21 |
22 | AbstractMainTest(String input, String output) {
23 | this.input = input;
24 | this.output = output;
25 | }
26 |
27 | @BeforeClass
28 | public static void beforeClass() throws IOException {
29 | outStream = new ByteArrayOutputStream();
30 | System.setOut(new PrintStream(outStream));
31 | }
32 |
33 | @AfterClass
34 | public static void afterClass() throws IOException {
35 | outStream.close();
36 | }
37 |
38 | @Test(timeout = 8000)
39 | public void mainSample() throws Throwable {
40 | try (ByteArrayInputStream in = new ByteArrayInputStream(input.getBytes())) {
41 | outStream.reset();
42 |
43 | TestUtils.runMain(in, null);
44 |
45 | String actual = outStream.toString().replace(",", ".");
46 | String message = String.format("Expected %s but was %s", output, actual);
47 | assertEquals(message, output, actual);
48 | }
49 | }
50 | }
--------------------------------------------------------------------------------
/section541/lesson12781/step57848/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 | import java.util.ArrayList;
9 | import java.util.List;
10 | import java.util.stream.IntStream;
11 |
12 | import static org.junit.Assert.assertArrayEquals;
13 | import static org.junit.Assert.assertNotNull;
14 |
15 | /**
16 | * @author meanmail
17 | */
18 | public class MainTest {
19 | private static Method pseudoRandomStream;
20 | private static Class> mainClass;
21 |
22 | @BeforeClass
23 | public static void beforeClass() {
24 | mainClass = TestUtils.getUserClass("Main");
25 |
26 | pseudoRandomStream = TestUtils.getMethod(mainClass,
27 | "pseudoRandomStream",
28 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
29 | IntStream.class,
30 | Integer.TYPE);
31 | }
32 |
33 | @Test(timeout = 8000)
34 | public void pseudoRandomStream() throws Throwable {
35 | IntStream stream = (IntStream) TestUtils.invokeMethod(mainClass, pseudoRandomStream, 13);
36 |
37 | assertNotNull("Main.pseudoRandomStream(13) return null", stream);
38 |
39 | List actual = new ArrayList<>();
40 | stream.limit(10).forEach(actual::add);
41 |
42 | Integer[] expected = new Integer[]{13, 16, 25, 62, 384, 745, 502, 200, 0, 0};
43 |
44 | assertArrayEquals("Main.pseudoRandomStream(13).limit(10).toArray()",
45 | expected,
46 | actual.toArray(new Integer[10]));
47 | }
48 |
49 | }
--------------------------------------------------------------------------------
/section538/lesson12759/step47316/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 |
9 | import static org.junit.Assert.assertEquals;
10 |
11 | /**
12 | * @author meanmail
13 | */
14 | public class MainTest {
15 | private static Method flipBit;
16 | private static Class> mainClass;
17 |
18 | @BeforeClass
19 | public static void beforeClass() {
20 | mainClass = TestUtils.getUserClass("Main");
21 | flipBit = TestUtils.getMethod(mainClass,
22 | "flipBit",
23 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
24 | Integer.TYPE, Integer.TYPE, Integer.TYPE);
25 | }
26 |
27 | @Test(timeout = 8000)
28 | public void flipBitAllBitsInZero() throws Throwable {
29 | int value = 0;
30 | for (int i = 1; i <= 32; i++) {
31 | value = (int) TestUtils.invokeMethod(mainClass, flipBit, value, i);
32 | }
33 |
34 | String message = "\nint value = 0;\nfor (int i = 1; i <= 32; i++) {\n\tvalue = Main.flipBit(value, i);\n}";
35 | assertEquals(message, -1, value);
36 | }
37 |
38 | @Test(timeout = 8000)
39 | public void flipBitAllBitsInAllOne() throws Throwable {
40 | int value = -1;
41 | for (int i = 1; i <= 32; i++) {
42 | value = (int) TestUtils.invokeMethod(mainClass, flipBit, value, i);
43 | }
44 |
45 | String message = "\nint value = -1;\nfor (int i = 1; i <= 32; i++) {\n\tvalue = Main.flipBit(value, i);\n}";
46 | assertEquals(message, 0, value);
47 | }
48 | }
--------------------------------------------------------------------------------
/section539/lesson14513/step49950/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 | import java.util.function.DoubleUnaryOperator;
9 |
10 | import static org.junit.Assert.assertEquals;
11 |
12 | /**
13 | * @author meanmail
14 | */
15 | public class MainTest {
16 | private static final String MESSAGE_TEMPLATE = "Main.integrate(%s, %f, %f);";
17 | private static Method integrate;
18 | private static Class> mainClass;
19 |
20 | @BeforeClass
21 | public static void beforeClass() {
22 | mainClass = TestUtils.getUserClass("Main");
23 |
24 | integrate = TestUtils.getMethod(mainClass,
25 | "integrate",
26 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
27 | Double.TYPE,
28 | DoubleUnaryOperator.class, Double.TYPE, Double.TYPE);
29 | }
30 |
31 | @Test(timeout = 8000L)
32 | public void integrateSample1() throws Throwable {
33 | integrate(x -> 1, 0, 10, 10, "x -> 1");
34 | }
35 |
36 | @Test(timeout = 8000L)
37 | public void integrateSample2() throws Throwable {
38 | integrate(x -> x, -458, 100, -99882.0004536563, "x -> x");
39 | }
40 |
41 | private void integrate(DoubleUnaryOperator operator, double a, double b, double expected, String operatorStr) throws Throwable {
42 | double actual = (double) TestUtils.invokeMethod(mainClass, integrate, operator, a, b);
43 |
44 | String message = String.format(MESSAGE_TEMPLATE, operatorStr, a, b);
45 | assertEquals(message, expected, actual, 1e-5);
46 | }
47 | }
--------------------------------------------------------------------------------
/section542/lesson12783/step55646/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.io.ByteArrayInputStream;
7 | import java.io.ByteArrayOutputStream;
8 | import java.io.IOException;
9 | import java.io.PrintStream;
10 | import java.util.Arrays;
11 |
12 | import static org.junit.Assert.assertArrayEquals;
13 |
14 | /**
15 | * @author meanmail
16 | */
17 | public class MainTest {
18 |
19 | private static ByteArrayOutputStream outStream;
20 | private static byte[][][] testSet = new byte[][][]{{{65, 13, 10, 10, 13}, {65, 10, 10, 13}}, {{}, {}}, {{13, 10}, {10}},
21 | {{10, 13}, {10, 13}}, {{13, 13, 13, 13, 13}, {13, 13, 13, 13, 13}}, {{10, 10}, {10, 10}}, {{13, 13, 10}, {13, 10}},
22 | {{13, 65}, {13, 65}}, {{65, 65, 65}, {65, 65, 65}}, {{13, 13, 13, 10}, {13, 13, 10}}, {{55, 55}, {55, 55}}};
23 |
24 | @BeforeClass
25 | public static void beforeClass() throws IOException {
26 | outStream = new ByteArrayOutputStream();
27 | System.setOut(new PrintStream(outStream));
28 | }
29 |
30 | @Test(timeout = 8000)
31 | public void main() throws Throwable {
32 | for (int i = 0; i < testSet.length; i++) {
33 | outStream.reset();
34 | TestUtils.runMain(new ByteArrayInputStream(testSet[i][0]), new PrintStream(outStream));
35 |
36 | byte[] expected = testSet[i][1];
37 | byte[] actual = outStream.toByteArray();
38 | String message = String.format("Test#%d: Expected %s but was %s", i, Arrays.toString(expected), Arrays.toString(actual));
39 | assertArrayEquals(message, expected, actual);
40 | }
41 | }
42 | }
--------------------------------------------------------------------------------
/section540/lesson12773/step53606/src/RobotConnectionManagerImpl.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 | /**
3 | * @author meanmail
4 | */
5 | public class RobotConnectionManagerImpl implements RobotConnectionManager {
6 | private int callCount;
7 | private boolean failedOnClose;
8 | private int failedConnectionCount;
9 | private int closeCount;
10 | private RuntimeException moveRobotToException;
11 |
12 | @Override
13 | public RobotConnection getConnection() {
14 | callCount++;
15 | if (callCount <= failedConnectionCount) {
16 | throw new RobotConnectionException("Connection failed");
17 | }
18 | return new RobotConnection() {
19 | @Override
20 | public void moveRobotTo(int x, int y) {
21 | if (moveRobotToException != null) {
22 | throw moveRobotToException;
23 | }
24 | }
25 |
26 | @Override
27 | public void close() {
28 | closeCount++;
29 | if (failedOnClose) {
30 | throw new RobotConnectionException("Closing failed");
31 | }
32 | }
33 | };
34 | }
35 |
36 | int callCount() {
37 | return callCount;
38 | }
39 |
40 | void setFailedOnClose() {
41 | this.failedOnClose = true;
42 | }
43 |
44 | void setFailedConnectionCount(int failedConnectionCount) {
45 | this.failedConnectionCount = failedConnectionCount;
46 | }
47 |
48 | int closeCount() {
49 | return closeCount;
50 | }
51 |
52 | void setMoveRobotToException(RuntimeException moveRobotToException) {
53 | this.moveRobotToException = moveRobotToException;
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/section541/lesson12781/step58088/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 | import java.util.Arrays;
9 | import java.util.Comparator;
10 | import java.util.function.BiConsumer;
11 | import java.util.stream.Stream;
12 |
13 | import static org.junit.Assert.assertEquals;
14 | import static org.junit.Assert.fail;
15 |
16 | /**
17 | * @author meanmail
18 | */
19 | public class MainTest {
20 | private static Method findMinMax;
21 | private static Class> mainClass;
22 |
23 | @BeforeClass
24 | public static void beforeClass() {
25 | mainClass = TestUtils.getUserClass("Main");
26 |
27 | findMinMax = TestUtils.getMethod(mainClass,
28 | "findMinMax",
29 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
30 | Void.TYPE,
31 | Stream.class,
32 | Comparator.class,
33 | BiConsumer.class);
34 | }
35 |
36 | @Test(timeout = 8000)
37 | public void findMinMax() throws Throwable {
38 | Stream stream = Arrays.stream(new Integer[]{10, 20, 1, 5, 8, 94, 1, -52, 0});
39 | Comparator comparator = Integer::compare;
40 | final boolean[] failFlag = {true};
41 | BiConsumer biConsumer = (min, max) -> {
42 | assertEquals(new Integer(-52), min);
43 | assertEquals(new Integer(94), max);
44 | failFlag[0] = false;
45 | };
46 |
47 | TestUtils.invokeMethod(mainClass, findMinMax, stream, comparator, biConsumer);
48 |
49 | if (failFlag[0]) {
50 | fail("biConsumer didn't accept");
51 | }
52 | }
53 |
54 | }
--------------------------------------------------------------------------------
/section538/lesson12761/step47333/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 |
9 | import static org.junit.Assert.assertEquals;
10 |
11 | /**
12 | * @author meanmail
13 | */
14 | public class MainTest {
15 | private static final String MESSAGE_TEMPLATE = "Main.isPalindrome(\"%s\")";
16 | private static Method isPalindrome;
17 | private static Class> mainClass;
18 |
19 | @BeforeClass
20 | public static void beforeClass() {
21 | mainClass = TestUtils.getUserClass("Main");
22 | isPalindrome = TestUtils.getMethod(mainClass,
23 | "isPalindrome",
24 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
25 | Boolean.TYPE,
26 | String.class);
27 | }
28 |
29 | @Test(timeout = 8000L)
30 | public void isPalindromeSample1() throws Throwable {
31 | String text = "Madam, I'm Adam!";
32 | String message = String.format(MESSAGE_TEMPLATE, text);
33 | assertEquals(message, true, TestUtils.invokeMethod(mainClass, isPalindrome, text));
34 | }
35 |
36 | @Test(timeout = 8000L)
37 | public void isPalindromeSample2() throws Throwable {
38 | String text = "Text about a bird";
39 | String message = String.format(MESSAGE_TEMPLATE, text);
40 | assertEquals(message, false, TestUtils.invokeMethod(mainClass, isPalindrome, text));
41 | }
42 |
43 | @Test(timeout = 8000L)
44 | public void isPalindromeSample3() throws Throwable {
45 | String text = "|2 @\"$U~ ~/~\\~p* p#e!!!r[ ]c{a}:s'e<.> _Es^a$c Re+p''p///u2-";
46 | String message = String.format(MESSAGE_TEMPLATE, text);
47 | assertEquals(message, true, TestUtils.invokeMethod(mainClass, isPalindrome, text));
48 | }
49 | }
--------------------------------------------------------------------------------
/section539/lesson12766/step49992/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 |
9 | import static org.junit.Assert.assertEquals;
10 |
11 | /**
12 | * @author meanmail
13 | */
14 | public class MainTest {
15 | private static final String MESSAGE_TEMPLATE = "robot.moveRobot(%d, %d);\nrobot.get%s()";
16 | private static Method moveRobot;
17 | private static Class> mainClass;
18 |
19 | @BeforeClass
20 | public static void beforeClass() {
21 | mainClass = TestUtils.getUserClass("Main");
22 |
23 | moveRobot = TestUtils.getMethod(mainClass,
24 | "moveRobot",
25 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
26 | Void.TYPE,
27 | Robot.class, Integer.TYPE, Integer.TYPE);
28 | }
29 |
30 | @Test(timeout = 8000L)
31 | public void moveRobotSample1() throws Throwable {
32 | beforeClass();
33 |
34 | Robot robot = new Robot();
35 | TestUtils.invokeMethod(mainClass, moveRobot, robot, 3, 0);
36 |
37 | int x = robot.getX();
38 | int y = robot.getY();
39 |
40 | assertEquals(String.format(MESSAGE_TEMPLATE, 3, 0, "X"), 3, x);
41 | assertEquals(String.format(MESSAGE_TEMPLATE, 3, 0, "Y"), 0, y);
42 | }
43 |
44 | @Test(timeout = 8000L)
45 | public void moveRobotSample2() throws Throwable {
46 | beforeClass();
47 |
48 | Robot robot = new Robot();
49 | TestUtils.invokeMethod(mainClass, moveRobot, robot, -130, 200);
50 |
51 | int x = robot.getX();
52 | int y = robot.getY();
53 |
54 | assertEquals(String.format(MESSAGE_TEMPLATE, -130, 200, "X"), -130, x);
55 | assertEquals(String.format(MESSAGE_TEMPLATE, -130, 200, "Y"), 200, y);
56 | }
57 | }
--------------------------------------------------------------------------------
/section538/lesson12762/step47334/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 | import java.math.BigInteger;
9 |
10 | import static java.math.BigInteger.ONE;
11 | import static org.junit.Assert.assertEquals;
12 |
13 | /**
14 | * @author meanmail
15 | */
16 | public class MainTest {
17 | private static final String MESSAGE_TEMPLATE = "Main.factorial(%d)";
18 | private static Method factorial;
19 | private static Class> mainClass;
20 |
21 | @BeforeClass
22 | public static void beforeClass() {
23 | mainClass = TestUtils.getUserClass("Main");
24 | factorial = TestUtils.getMethod(mainClass,
25 | "factorial",
26 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
27 | BigInteger.class,
28 | Integer.TYPE);
29 | }
30 |
31 | @Test(timeout = 8000L)
32 | public void factorialSample1() throws Throwable {
33 | int value = 1;
34 | BigInteger actual = (BigInteger) TestUtils.invokeMethod(mainClass, factorial, value);
35 | String message = String.format(MESSAGE_TEMPLATE, value);
36 | assertEquals(message, ONE, actual);
37 | }
38 |
39 | @Test(timeout = 8000L)
40 | public void factorialSample2() throws Throwable {
41 | int value = 3;
42 | BigInteger actual = (BigInteger) TestUtils.invokeMethod(mainClass, factorial, value);
43 | String message = String.format(MESSAGE_TEMPLATE, value);
44 | assertEquals(message, BigInteger.valueOf(6), actual);
45 | }
46 |
47 | @Test(timeout = 8000L)
48 | public void factorialSample3() throws Throwable {
49 | int value = 20;
50 | BigInteger actual = (BigInteger) TestUtils.invokeMethod(mainClass, factorial, value);
51 | String message = String.format(MESSAGE_TEMPLATE, value);
52 | assertEquals(message, BigInteger.valueOf(2432902008176640000L), actual);
53 | }
54 | }
--------------------------------------------------------------------------------
/section539/lesson12766/step49992/src/Robot.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | public class Robot {
4 | private Direction direction = Direction.UP;
5 | private int x;
6 | private int y;
7 |
8 | public Direction getDirection() {
9 | // текущее направление взгляда
10 | return direction;
11 | }
12 |
13 | public int getX() {
14 | // текущая координата X
15 | return x;
16 | }
17 |
18 | public int getY() {
19 | // текущая координата Y
20 | return y;
21 | }
22 |
23 | public void turnLeft() {
24 | // повернуться на 90 градусов против часовой стрелки
25 | switch (direction) {
26 | case UP:
27 | direction = Direction.LEFT;
28 | break;
29 | case DOWN:
30 | direction = Direction.RIGHT;
31 | break;
32 | case LEFT:
33 | direction = Direction.DOWN;
34 | break;
35 | case RIGHT:
36 | direction = Direction.UP;
37 | break;
38 | }
39 | }
40 |
41 | public void turnRight() {
42 | // повернуться на 90 градусов по часовой стрелке
43 | switch (direction) {
44 | case UP:
45 | direction = Direction.RIGHT;
46 | break;
47 | case DOWN:
48 | direction = Direction.LEFT;
49 | break;
50 | case LEFT:
51 | direction = Direction.UP;
52 | break;
53 | case RIGHT:
54 | direction = Direction.DOWN;
55 | break;
56 | }
57 | }
58 |
59 | public void stepForward() {
60 | // шаг в направлении взгляда
61 | // за один шаг робот изменяет одну свою координату на единицу
62 | switch (direction) {
63 | case UP:
64 | y++;
65 | break;
66 | case DOWN:
67 | y--;
68 | break;
69 | case LEFT:
70 | x--;
71 | break;
72 | case RIGHT:
73 | x++;
74 | break;
75 | }
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/section538/lesson12762/step47347/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 | import java.util.Arrays;
9 |
10 | import static org.junit.Assert.assertArrayEquals;
11 |
12 | /**
13 | * @author meanmail
14 | */
15 | public class MainTest {
16 | private static final int[][][] samples = new int[][][]{
17 | {{0, 2, 4}, {1, 3, 5}, {0, 1, 2, 3, 4, 5}},
18 | {{}, {1, 3, 5}, {1, 3, 5}},
19 | {{}, {}, {}},
20 | {{1, 1, 1}, {1, 1, 1}, {1, 1, 1, 1, 1, 1}},
21 | {{1, 2, 3}, {1, 2, 3}, {1, 1, 2, 2, 3, 3}},
22 | {{6}, {1, 3, 5}, {1, 3, 5, 6}},
23 | {{6}, {5, 5, 5, 5}, {5, 5, 5, 5, 6}},
24 | {{1, 2, 3, 5}, {6}, {1, 2, 3, 5, 6}},
25 | {{1, 2, 3, 5}, {}, {1, 2, 3, 5}},
26 | {{4, 4}, {1, 2, 3}, {1, 2, 3, 4, 4}},
27 | {{1, 2, 3}, {4, 4}, {1, 2, 3, 4, 4}}
28 | };
29 |
30 | private static final String MESSAGE_TEMPLATE = "Main.mergeArrays(%s, %s)\nExpected: %s\nActual: %s\n";
31 | private static Method mergeArrays;
32 | private static Class> mainClass;
33 |
34 | @BeforeClass
35 | public static void beforeClass() {
36 | mainClass = TestUtils.getUserClass("Main");
37 | mergeArrays = TestUtils.getMethod(mainClass,
38 | "mergeArrays",
39 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
40 | int[].class,
41 | int[].class,
42 | int[].class);
43 | }
44 |
45 | @Test(timeout = 6000)
46 | public void mergeArraysSample1() throws Throwable {
47 | for (int[][] sample : samples) {
48 | int[] array = (int[]) TestUtils.invokeMethod(mainClass, mergeArrays, sample[0], sample[1]);
49 |
50 | String message = String.format(MESSAGE_TEMPLATE,
51 | Arrays.toString(sample[0]),
52 | Arrays.toString(sample[1]),
53 | Arrays.toString(sample[2]),
54 | Arrays.toString(array));
55 | assertArrayEquals(message, sample[2], array);
56 | }
57 | }
58 |
59 | }
--------------------------------------------------------------------------------
/section538/lesson12760/step47682/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 |
9 | import static org.junit.Assert.assertEquals;
10 |
11 | /**
12 | * @author meanmail
13 | */
14 | public class MainTest {
15 | private static final String MESSAGE_TEMPLATE = "Main.charExpression(%d)";
16 | private static Method charExpression;
17 | private static Class> mainClass;
18 |
19 | @BeforeClass
20 | public static void beforeClass() {
21 | mainClass = TestUtils.getUserClass("Main");
22 | charExpression = TestUtils.getMethod(mainClass,
23 | "charExpression",
24 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
25 | Character.TYPE, Integer.TYPE);
26 | }
27 |
28 | @Test(timeout = 2000)
29 | public void charExpressionSample1() throws Throwable {
30 | int offset = 32;
31 | char expected = '|';
32 | String message = String.format(MESSAGE_TEMPLATE, offset);
33 | assertEquals(message, expected, TestUtils.invokeMethod(mainClass, charExpression, offset));
34 | }
35 |
36 | @Test(timeout = 2000)
37 | public void charExpressionSample2() throws Throwable {
38 | int offset = 29;
39 | char expected = 'y';
40 | String message = String.format(MESSAGE_TEMPLATE, offset);
41 | assertEquals(message, expected, TestUtils.invokeMethod(mainClass, charExpression, offset));
42 | }
43 |
44 | @Test(timeout = 2000)
45 | public void charExpressionSample3() throws Throwable {
46 | int offset = 0;
47 | char expected = '\\';
48 | String message = String.format(MESSAGE_TEMPLATE, offset);
49 | assertEquals(message, expected, TestUtils.invokeMethod(mainClass, charExpression, offset));
50 | }
51 |
52 | @Test(timeout = 2000)
53 | public void charExpressionSample4() throws Throwable {
54 | int offset = -20;
55 | char expected = 'H';
56 | String message = String.format(MESSAGE_TEMPLATE, offset);
57 | assertEquals(message, expected, TestUtils.invokeMethod(mainClass, charExpression, offset));
58 | }
59 | }
--------------------------------------------------------------------------------
/section538/lesson12760/step47329/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.BeforeClass;
4 | import org.junit.Test;
5 |
6 | import java.lang.reflect.Method;
7 | import java.lang.reflect.Modifier;
8 |
9 | import static org.junit.Assert.assertEquals;
10 |
11 | /**
12 | * @author meanmail
13 | */
14 | public class MainTest {
15 | private static final String MESSAGE_TEMPLATE = "Main.isPowerOfTwo(%d)";
16 | private static Method charExpression;
17 | private static Class> mainClass;
18 |
19 | @BeforeClass
20 | public static void beforeClass() {
21 | mainClass = TestUtils.getUserClass("Main");
22 | charExpression = TestUtils.getMethod(mainClass,
23 | "isPowerOfTwo",
24 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
25 | Boolean.TYPE, Integer.TYPE);
26 | }
27 |
28 | @Test(timeout = 8000)
29 | public void isPowerOfTwoSample1() throws Throwable {
30 | int value = 0;
31 | String message = String.format(MESSAGE_TEMPLATE, value);
32 | assertEquals(message, false, TestUtils.invokeMethod(mainClass, charExpression, value));
33 | }
34 |
35 | @Test(timeout = 8000)
36 | public void isPowerOfTwoSample2() throws Throwable {
37 | int value = 1;
38 | String message = String.format(MESSAGE_TEMPLATE, value);
39 | assertEquals(message, true, TestUtils.invokeMethod(mainClass, charExpression, value));
40 | }
41 |
42 | @Test(timeout = 8000)
43 | public void isPowerOfTwoSample3() throws Throwable {
44 | int value = -2;
45 | String message = String.format(MESSAGE_TEMPLATE, value);
46 | assertEquals(message, true, TestUtils.invokeMethod(mainClass, charExpression, value));
47 | }
48 |
49 | @Test(timeout = 8000)
50 | public void isPowerOfTwoSample4() throws Throwable {
51 | int value = 1458;
52 | String message = String.format(MESSAGE_TEMPLATE, value);
53 | assertEquals(message, false, TestUtils.invokeMethod(mainClass, charExpression, value));
54 | }
55 |
56 | @Test(timeout = 8000)
57 | public void isPowerOfTwoSample5() throws Throwable {
58 | int value = -536_870_912;
59 | String message = String.format(MESSAGE_TEMPLATE, value);
60 | assertEquals(message, true, TestUtils.invokeMethod(mainClass, charExpression, value));
61 | }
62 | }
--------------------------------------------------------------------------------
/section541/lesson12777/step57838/src/MainTest.java:
--------------------------------------------------------------------------------
1 | // Don't edit this file
2 |
3 | import org.junit.Before;
4 | import org.junit.BeforeClass;
5 | import org.junit.Test;
6 |
7 | import java.lang.reflect.Method;
8 | import java.lang.reflect.Modifier;
9 | import java.util.Objects;
10 | import java.util.function.Function;
11 | import java.util.function.Predicate;
12 |
13 | import static org.junit.Assert.assertEquals;
14 | import static org.junit.Assert.assertNotNull;
15 |
16 | /**
17 | * @author meanmail
18 | */
19 | public class MainTest {
20 | private static final String MESSAGE_TEMPLATE = "Main.ternaryOperator().apply(\"%s\")";
21 | private static Method ternaryOperator;
22 | private static Class> mainClass;
23 | private Function safeStringLength;
24 |
25 | @BeforeClass
26 | public static void beforeClass() {
27 | mainClass = TestUtils.getUserClass("Main");
28 |
29 | ternaryOperator = TestUtils.getMethod(mainClass,
30 | "ternaryOperator",
31 | new int[]{Modifier.PUBLIC | Modifier.STATIC},
32 | Function.class,
33 | Predicate.class, Function.class, Function.class);
34 | }
35 |
36 | @Before
37 | public void before() throws Throwable {
38 | Predicate