Commit 0a50301c authored by uievq's avatar uievq Committed by uxrog
Browse files

fix: corrected mistakes in output format and added output files

parent fc940476
class correctStepping {
class CorrectStepping {
public static void main(String[] args) {
System.out.write(48);
System.out.flush();
Steps step = new Steps();
if (true && (false || 48 < 356)) {
System.out.write(49);
System.out.flush();
} else {
System.out.write(48);
System.out.flush();
}
System.out.write(step.step1());
System.out.flush();
if (step.step2() < 54 || step.noStep() == 4) {
System.out.write(step.step2());
System.out.flush();
} else {
System.out.write(step.noStep());
System.out.flush();
}
}
......@@ -22,6 +28,7 @@ class Steps {
public int step1() {
System.out.write(50);
System.out.flush();
return 51;
return 52;
}
......@@ -34,6 +41,7 @@ class Steps {
public int noStep() {
System.out.write(48);
System.out.flush();
return 5 * 10 / 2 + 35;
}
}
\ No newline at end of file
}
......@@ -17,8 +17,11 @@ class Death {
a = b * a;
a = a * a + b;
c = !c;
System.out.write(48);
System.out.flush();
return;
System.out.write(48);
System.out.write(50);
System.out.flush();
array[10] = 5;
b = a * b * 0;
a = a / b;
......@@ -30,7 +33,9 @@ class Death {
int a = 46;
int b = 2;
int c = a / b;
int d = 0;
int d = 0
System.out.write(49);
System.out.flush();
return (test || a == b || boo && test != boo || lazyEvalDeath()) && (test || boo || a / d < 5);
}
......@@ -48,4 +53,4 @@ class Death {
return neverUsedDeath(infinite);
}
}
\ No newline at end of file
}
0
1
2
3
4
5
6
7
8
1
2
6
24
120
720
5040
40320
......@@ -34,6 +34,7 @@ class Calc {
} else if (input != 10) {
System.out.write(33);
System.out.write(10);
System.out.flush();
}
}
......@@ -49,4 +50,4 @@ class Calc {
}
}
\ No newline at end of file
}
......@@ -3,9 +3,10 @@ class infiniteLoop {
int counter = 48;
while (true && !false) {
System.out.write(counter);
System.out.flush();
counter = counter + 1;
if (counter > 57)
return;
}
}
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment