git reimport
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
23 I - Composing Of String
|
||||
6 SINGLE
|
||||
8 STANDARD
|
||||
-1
|
||||
8 STANDARD
|
||||
-1
|
||||
4
|
||||
0
|
||||
13 3
|
||||
a
|
||||
aa
|
||||
a
|
||||
aaa
|
||||
|
||||
2 2
|
||||
|
||||
1
|
||||
1
|
||||
21 4
|
||||
ab
|
||||
aab
|
||||
aa
|
||||
bb
|
||||
baaab
|
||||
|
||||
2 3
|
||||
|
||||
1
|
||||
2
|
||||
18 2
|
||||
aaa
|
||||
bbb
|
||||
aaacbbb
|
||||
|
||||
3 -1
|
||||
|
||||
1
|
||||
3
|
||||
10 2
|
||||
ax
|
||||
xb
|
||||
ab
|
||||
1 2
|
||||
1
|
||||
11 src/chelper
|
||||
8 -Xmx256M
|
||||
4 Main
|
||||
13 chelper.TaskI
|
||||
39 net.egork.chelper.checkers.TokenChecker
|
||||
0
|
||||
0
|
||||
10 2017.04.05
|
||||
31 VK Cup 2017 - Wild Card Round 1
|
||||
1
|
||||
14 io.InputReader
|
||||
15 io.OutputWriter
|
||||
0
|
||||
0
|
@@ -0,0 +1,61 @@
|
||||
package chelper;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import io.InputReader;
|
||||
import io.OutputWriter;
|
||||
|
||||
public class TaskI {
|
||||
|
||||
public static final int MAGIC_KEK = 1000000;
|
||||
|
||||
public void solve(int testNumber, InputReader in, OutputWriter out) {
|
||||
int n = in.nextInt();
|
||||
String[] strings = new String[n];
|
||||
|
||||
for (int i = 0; i < n; i++) {
|
||||
strings[i] = in.nextString();
|
||||
}
|
||||
|
||||
String e = in.nextString();
|
||||
|
||||
int m = e.length();
|
||||
|
||||
int[] dp = new int[m + 1];
|
||||
|
||||
Arrays.fill(dp, MAGIC_KEK);
|
||||
|
||||
dp[0] = 0;
|
||||
|
||||
for (int i = 0; i < n; i++) {
|
||||
for (int j = 0; j < strings[i].length(); j++) {
|
||||
int c = 0;
|
||||
for (int k = 0; j + k < strings[i].length() && c < e.length(); k++) {
|
||||
if (strings[i].charAt(j + k) == e.charAt(c)) {
|
||||
c++;
|
||||
dp[c] = Math.max(dp[c], 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < m; i++) {
|
||||
for (int j = 0; j < n; j++) {
|
||||
int c = 0;
|
||||
for (int k = 0; i + c < e.length() && k < strings[j].length(); k++) {
|
||||
if (strings[j].charAt(k) == e.charAt(i + c)) {
|
||||
c++;
|
||||
dp[i + c] = Math.min(dp[i + c], dp[i] + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (dp[m] >= MAGIC_KEK) {
|
||||
out.println(-1);
|
||||
} else {
|
||||
|
||||
out.println(dp[m]);
|
||||
}
|
||||
}
|
||||
}
|
49
archive/2017.04/2017.04.08 - unsorted/TaskA.java
Normal file
49
archive/2017.04/2017.04.08 - unsorted/TaskA.java
Normal file
@@ -0,0 +1,49 @@
|
||||
package chelper;
|
||||
|
||||
import io.InputReader;
|
||||
import io.OutputWriter;
|
||||
import misc.GCJSolution;
|
||||
|
||||
public class TaskA extends GCJSolution {
|
||||
|
||||
public void solve(int testNumber, InputReader in, OutputWriter out) {
|
||||
wrapSolve(testNumber, in, out);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void solve(int testNumber) {
|
||||
char[] s = in.nextString().toCharArray();
|
||||
int k = in.nextInt();
|
||||
|
||||
int n = s.length;
|
||||
|
||||
boolean[] a = new boolean[n];
|
||||
for (int i = 0; i < n; i++) {
|
||||
a[i] = s[i] == '+';
|
||||
}
|
||||
|
||||
int ans = 0;
|
||||
|
||||
for (int i = 0; i + k - 1 < n; i++) {
|
||||
if (!a[i]) {
|
||||
for (int j = 0; j < k; j++) {
|
||||
a[i + j] ^= true;
|
||||
}
|
||||
ans++;
|
||||
}
|
||||
}
|
||||
|
||||
boolean ok = true;
|
||||
|
||||
for (int i = 0; i < n; i++) {
|
||||
ok &= a[i];
|
||||
}
|
||||
|
||||
if (ok) {
|
||||
out.println(ans);
|
||||
} else {
|
||||
out.println("IMPOSSIBLE");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
240
archive/2017.04/2017.04.08 - unsorted/TaskA.task
Normal file
240
archive/2017.04/2017.04.08 - unsorted/TaskA.task
Normal file
@@ -0,0 +1,240 @@
|
||||
5 TaskA
|
||||
12 MULTI_NUMBER
|
||||
8 STANDARD
|
||||
9 input.txt
|
||||
8 STANDARD
|
||||
10 output.txt
|
||||
3
|
||||
0
|
||||
28 3
|
||||
---+-++- 3
|
||||
+++++ 4
|
||||
-+-+- 4
|
||||
41 Case #1: 3
|
||||
Case #2: 0
|
||||
Case #3: IMPOSSIBLE
|
||||
1
|
||||
1
|
||||
897 100
|
||||
---+-++- 3
|
||||
+++++ 4
|
||||
-+-+- 4
|
||||
---- 2
|
||||
-++----+-- 7
|
||||
--+ 2
|
||||
+-+-+-+-+- 2
|
||||
+--- 2
|
||||
++ 2
|
||||
++-+ 2
|
||||
-++- 2
|
||||
+-+-+-+-+- 3
|
||||
-+++ 3
|
||||
---+ 3
|
||||
-+++++++++ 2
|
||||
+--+ 2
|
||||
---------- 10
|
||||
-++++++- 7
|
||||
--++- 2
|
||||
--------- 3
|
||||
-+-+ 2
|
||||
---- 3
|
||||
---+ 2
|
||||
-------++ 7
|
||||
+-- 2
|
||||
--++ 3
|
||||
-+++++++-+ 2
|
||||
++++++++++ 10
|
||||
+- 2
|
||||
-+-+++-+- 6
|
||||
-+++ 2
|
||||
--+- 2
|
||||
-+- 2
|
||||
+++----+ 3
|
||||
-+--++-- 3
|
||||
-+--+-+--+ 2
|
||||
------- 7
|
||||
-++++++++- 10
|
||||
-++- 3
|
||||
+----+ 4
|
||||
-+-- 2
|
||||
+--+-++-++ 4
|
||||
+-- 3
|
||||
+-++ 3
|
||||
+-+- 3
|
||||
++++++ 5
|
||||
+++--+++ 2
|
||||
+-+- 2
|
||||
--+- 3
|
||||
++- 2
|
||||
-+------- 9
|
||||
++-+ 3
|
||||
+-+-+-+- 3
|
||||
---------- 3
|
||||
-+++++++-- 2
|
||||
-- 2
|
||||
-++++++++- 9
|
||||
+-+-++-+ 5
|
||||
+--+ 3
|
||||
---------- 5
|
||||
++-- 2
|
||||
+-+ 3
|
||||
-+- 3
|
||||
-+ 2
|
||||
--- 2
|
||||
+++ 3
|
||||
+-++ 2
|
||||
+++++ 5
|
||||
----++-+ 4
|
||||
+--- 3
|
||||
-+-- 3
|
||||
++++ 2
|
||||
---------- 2
|
||||
+-+-- 3
|
||||
+-----+ 5
|
||||
--++ 2
|
||||
+-+-+-+ 3
|
||||
++++++-+++ 10
|
||||
--+ 3
|
||||
+++- 3
|
||||
++- 3
|
||||
--- 3
|
||||
++++ 3
|
||||
-++ 3
|
||||
++-- 3
|
||||
-+-+-+-+-+ 2
|
||||
----- 4
|
||||
-++ 2
|
||||
+-+ 2
|
||||
-+-+++- 6
|
||||
-++++++++- 8
|
||||
+---+++--- 6
|
||||
+++ 2
|
||||
-++++++++- 2
|
||||
---++++++ 4
|
||||
+++- 2
|
||||
-+-+ 3
|
||||
-+-+--+ 2
|
||||
+-+-+-+-+ 3
|
||||
---------+ 9
|
||||
|
||||
-1
|
||||
1
|
||||
2
|
||||
49828 100
|
||||
---+-++- 3
|
||||
+++++ 4
|
||||
-+-+- 4
|
||||
++++-+---++++-+-++-+-++---++++-+-+-++++---++-+--++++++-++-+-++++-++++-++--++-+--+-+-+-+++-+-----+-+---+-+---+-+-++---+--+-+----+--+++--+++--+--++-++---++-++++++-+------+---+-++++-+-++++----+--+---+++++-+-+--+++--------+++--++--+---++++---++-++++++-++-+--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-+---++++-+-++-+-++---++++-+-+-++++---++-+--++++++-++-+-++++-++++-++--++-+--+-+-+-+++-+-----+-+---+-+---+-+-++---+--+-+----+--+++--+++--+--++-++---++-++++++-+------+---+-++++-+-++++----+--+---+++++-+-+--+++--------+++--++--+---++++---++-++++++-++-+--++ 437
|
||||
+-++++++--+--++-+-+++--+-++++-+--++-+++++----+--+-++++++------+--+-+-++----+++---+-+-------+-++-+--+-++---++-------++-----++++---+---+-++-+++--+-+++---++---+--+++++------+-++++-+++++--+--+-+-++-+-++++++-+--+------------++-+--+--++-++-+-+--++++---++++-++-+----++-+-++--++-+-+--++-----++++--+-++---+-+-+++++-++-+++-+-+-++-+---+++++--++----+++- 17
|
||||
-+++--++-+-+-+++----+--++----++--++-++--+----+--++++-+-+-+++----+++-+-+---+++++++-+--++--++-+++-+-++-++--+++--++++++-+++++---+---+-++-+-+++++++++++---+--++-+--++--+--+++++---+-++++--++---+-+++---+- 41
|
||||
---+---+--+++-+++++-++-+--++-++--+++-----++++++++---+--+++--+++-++++++++++++++++++++++++++++++++++++-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---+---+--+++-+++++-++-+--++-++--+++-----++++++++---+--+++--+++-+ 665
|
||||
++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++- 2
|
||||
++++++++---+-+-+++--++++--+-+---++++-------+-+-+-+--+++---+++--+--+---+++-+-+----+++--++-++++-+----+--+--+-+-+----+++++-+--+-++++-----+-----+++++--------++++++-++-+--+---++-+-+--+-++-+-+++---++++---+--++-+------++++++---+-+-++--++++++++--++--++-++++--++----++---++-+-+-+-+--++--+----++-+--+--++-++++-+-+-------+++-+-+-----+-+--+--+--+--+--+++-++---+--+---+-+-+-++-+----+++-++-+--+++-++-----+-++------++++-++-++-+-+-++--++---+--+--+-+-++--+-+-+-+--+++++-+-++--++++-----+-+--+--+++++++--++++++++++++++++++++++++++++---+-+-+++--++++--+-+---+++--------+-+-+-+--+++---+++--+--+---+++-+-+----+++--++-++++-+----+--+--+-+-+----+++++-+--+-++++-----+-----+++++--------++++++-++-+--+---++-+-+--+-++-+-+++---++++---+--++-+------++++++---+-+-++--++++++++--++--++-++++--++----++---++-+-+-+-+--++--+----++-+--+--++-++++-+-+-------+++-+-+-----+-+--+--+--+--+--+++-++---+--+---+-+-+-++-+----+++-++-+--+++-++-----+-++------++++-++-++-+-+-++--++---+--+--+-+-++--+-+-+-+--+++++-+-++--++++-----+-+--+--+++++++--++++ 505
|
||||
--+--+-+++-+--+--+++-----+--+-+-+-----+-++-++++---++++--+-+--++-+------+-+++----+++-++-+++-+--+-+------+--+-+--+--+---+---+---++++--+---+-++-++--+-+++-+-+-++--+-+----+--+------+++-+-++++-+++++----+-+---+--+-++-+-+++--++--+++--+++++-+---+-+++-++-+-++-++++++++----+-+--+-+++--+--++++-+----+---+-++-++++-++--+-+-++---+------+-++++-+-+-++++--+-+-+--+---------+--++-+------+++++------+-++-++-+--+---+-++-+-+-+++----+++++-+++-+---++-++-++++-+--++-+--+---++-----++-+-++---+---++-++----+----+++--+-+--++-+-+++--+--++--+-+++-+++++++++--++---+++-+-+--+-+--++--+-----+-+-+-+--+---++++---++-+---+++-++----+-++--++-+---+++----+++--++++--+--+-+-++-++-++--+-++++----+-++--++-++-++--+-++--++-+- 137
|
||||
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 2
|
||||
+-++-+++++---++-++++--+-+-++-+-+++-+++-+-+--+--+-+++++++---+-++++---++--+++--+++-+-++----+-+++-+---+-++-+---+-----+-++-+--++++---+-+-+-+-++-----++++-+++-++-++++---++++++++---+-+-+-++-++-+-+-++++++++-+-+---+-+++--++--+-------+++-+----+++--++---++---+-+--++++-+---+-+++-+--+-+++-+++++-+--+-++----+++-+-+-+-+--+++++----+---+--+----+-+------+-+-+-+-++-+-++-+-++--+-+--+---+--++---+----+- 168
|
||||
-+ 2
|
||||
+---++++++++++-----++--++++++++++----------++------+-----++--++++++++-------++++-+----++-+++++----+++-+-----++++--------------++++---------++----------++++----+++++------+++-+--------+-+-++++++-++---+++-------------+++-+++---------++-+-----++++++++++++--------+---+++++------------+++---++-------+++++-+-++++-------+++++++++-----++++-++-+-----++++------++-----+---+---------------------------------------------------+++----------+++++--++----------++++++++++--++++++-+++++--++--------+++++++----+-++++--+-----++++---+-+++++----++++++++++++++----+++++++++--++++++++++----++++-----++++-+---+-++++++++-+-+------+--+++---+++++++++++++---+---+++++++++--+-+++++------------++++++++-+++-----++++++++++++---+++--+++++++-----+-+----+++++++---------+++++----+--+-+++++----++++++--+++++-+++-+++++++++++++ 415
|
||||
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 3
|
||||
--+++-+++-+-+-------+++-++--+----+-+--+++--+--+--++++++--+-++-+--+-+++-+++-++-+-++--+------------------------------++---+---+-+-+++++++---+--++-++++-+-++---++-++-++------++-+--+-++-+---+---+--+-+--++- 115
|
||||
-+-+-++---++++++-++++-++++-+--+-----++--+-+-+--+--+---+++-+-+++-++--+--+++--++--+--++-----+---+---+---+++-+-++---+++-++-----+---++++++-+++++--+----+--+----+++---+-+-+++---+-+----+----+---++--++---+++--+++-+-----++-+++--++-+----+-+++--+-+--++---+++-+-+--+-+-++-++-+--++++++-+-+++----+--+--+++++---+-++++---++-++-+-+-++-+--++--------++-+-+-+--++----++-+-++----+++-+--+-++++-++-+++++-+----++++---+++++-+-+-++--+++-+--+++----++---+-+--++--+---+---+--+---+-+-+-+--+++-+-++----+-+-----++-+++-+--+----+-+---+++----++-+-+-++-+--+-+--+--+-+--+++--++-+-++--+-++---+---++--++---+-+-------+--++-------++-+-++-+----++++--++-+-+---++-++-+-+--+++--++++++++++++-+---++-++------+-+--++-+--+-++--++--+++-++--++-++---++-++-----+ 169
|
||||
+---+-+++++---+-+-----+++++++-+++----+-+-+------++-+++-+-+++---+++---+-+++--++--++++------++-+--+----++--++-----++-+----+-----++--+--++++-+++-+-+-++-+++++-----+---++++----++++-+---+++-++--++++--+------++++-+---++++--+++-+++---+-+-++--+-++---++---++---+-+--++++-------+---+--++---+++++--++--++--+------++++-+-++-------+-----++++----+-+---+++ 91
|
||||
+-+-+-+-+ 3
|
||||
-+++-+++--+-+--++---+--+++++++-+-+-+---------++--+--++--+++-+--+----+-+++-+-+-+-+++--+-+-++--+-+--+-++---++---+-++-+++---+++--++--++---++---+++++-+---++-----+---++-+-++-++--+----++-+++----++---++--- 51
|
||||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3
|
||||
+-++++-+-+-+++-+-+-+-++-+--+++-+-+++++++++++++++++++++++++++++++++++++-++++++++++++++++++++++++++++++++++++++++++++++-++++-+-+-+++-+-+-+-++-+--+++-+-+++ 116
|
||||
++-+---+++--+-++--+--------+-+-+++++++--++-+-+-+++++-+----+-+-++-+-+-+++-+-+-+---++-+--+++-+-+--+++---+++-+++-+-----+-+---+--+-+++-+--+-++-++--++----+--+-+-+----+++--++-+---++-+-+-+++++---+---+----++-+----+-+++-----+++-+-+-----+-++-+-++-+++--++++-+++-+---+----+++-+----++-+++++++-+++--+++-----++--+-++--+--+++++-+--- 48
|
||||
++++--++-++++-++-+--+--++++--------+--+----+++----++--------+-++-++--++-+---+-++-+-+-++----+++++--++++-+-+++--+-++++--+++---++-+---++-++--+++-+++---++-++--------+---+-++-++--+---+-+--+++---++-+++--+--+++++---+-++++++++++++++++++++++++++++--++-++++-++-+--+--++++--------+--+----+++----++--------+-++-++--++-+---+-++-+-+-++----+++++--++++-+-+++--+-++++--+++---++-+---++-++--+++-+++---++-++--------+---+-++-++--+---+-+--+++---++-+++--+--+++++---+-+ 234
|
||||
-++++++++- 8
|
||||
+----+-------++--++-+-+-+-+++-+-+++---+++++-++++-++-----+---++---+++--+---+++++-+++--++--+----+-+----+-++-+--+---++-++----+-++++++++-+--+-++++------+-+++---++++---+++++--+-++++++-+---++++++-+-++---+--++-+--++-+++++-+-+-+++-+-+--+--++-+-++-++-+-+++----++-+--+++-+--++++-+++-++----+---++---++++-++--++--++-+-++++---++-+--------++++++-----++-+++++----+--++++-+--- 16
|
||||
---------- 5
|
||||
-+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2
|
||||
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- 3
|
||||
++++--+++++--------++----+++++--+++++--+++++++-----+++--+++-++-+++++++++---+++--++--++-++++-++++-+++-++----+---------+----++++---------------------+-+++++++++++++-------++++++--------+-+--+++++++----++--+---+------+++----++----+----+--+-----+-----+++++-----+--++-+++-+-+++--+-++++--++--+-+-++----+++--++-+-++-------++++---++----++-+----+++--+++++-----++-----+++++++--+++---++--++-++++-----+----+--++--++++---+-----++-+++-+-++--++--+++-+-+--+--+-+--+-----+-++-++-++-++-+-++++-+++--++++-+++-++++++++--++----+---+++++----+--+++----+++--++----+---++++++------++--++-+-++--+---++---++--------+++-+++---+--++-+-+-++--++----+++---++-+---+-++-+++---+---+-+-++++-+++----+--+++++-++++++--+--+--++---+--+----+-++--++-++--+-----+++++++++++-++++++-----++-----+++++--+--+++++++++++++----+++---+++--++++--+--++++++++---------+++-++-++++------++--++++-+++++++----+----+-----++-+++--+++--+-++++++-+----+++++++-++--+---------++-++- 182
|
||||
-++++++++- 10
|
||||
-+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 2
|
||||
----+--++-+--+--+---+++-+-+---+-++-++-+--+-+----+-+-++---+++--++---++++-+-+-++--+--++-+--++-+---+--++-+---++---+-+--+-+--+--++-+----+-+-+---++++-+--++++---------++---+-+---+-++-++--++-++-+-+---++++++++----+--+----+----+-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----+--++-+--+--+---+++-+-+---+-++-++-+--+-+----+-+-++---+++--++---++++-+-+-++--+--++-+--++-+---+--++-+---++---+-+--+-+--+--++-+----+-+-+---++++-+--++-+---------++---+-+---+-++-++--++-++-+-+---++++++++----+--+----+----+-+ 688
|
||||
+--+---+--++--++++--+--++--+--+++-+-+-----+-+-+--+--++++-+-+-++-+--++-+++-++++-+---++-++---+--++-++-++------+++++--+-----+-+-+--+---++----+-+-+--++-++-+++-+++---+-+---++---++-++-++-++++-+++--++-++++-+--++-++---+-+-++-----+-+--+-+-+--+++--++++++++-+-+-+--+--++--++-+-++++-+--++++--+++---++-------+--+----+-+----+---++-++-+-+-----+-----+-+-+-++---++---+-+++++----+--+-++---+-++-+--------------++++----+++-+-+---+-+--+--+++-+---+++++-+++++++----+---+---+-+----+++-+----++-+-+--++++-+--+++---+++++-++-+-+--+-+++-++--+-+-+-+-+++++-+-++--+-+++------+-+-+--+-+++++++--++-+-++---+-----+-+++++-++--+++---+++-+----+---+-+-+++--+-+++---+-+--++----++-+++------++-+----------+-+++-+++--+---+++-+++-+--++-++-+++++-++--++-++-+++++-++-+-+++++-+-++-+--+++-++--+++-+-+-+--+++--++-++++-------++-+----+-+++----+--++++--++-+-++-+++--++--+----+--+++++-----++---++-++++---+--+++++--+-++--+---+++++---++-+-----+++-+---+--+---+---+-+-+-+++-++--++-++-+-+--+++---++-+--+------++-+---++-++-+++-+++++-+---------+ 216
|
||||
+++-------------+---+--++++-++++++--++++++--+--+-++---------+++++--+++++---+++++--+---+--+++--+++---++-++--+---+++-+-++++++-++----+-+---++--+-++--+++-------++-++++-+--++--+----++--++++---++-++++++--++-+------++++++-+++++-+-++++-+++--+-+++++---+++--++--+---++--+++++----+++---+-++-+++++++---+++-++++--+---+----+-+----++----++--+++++-+--++---+-+---++++++++++-+----++++-+-----+++--++++++-----+++---++------+++--++--------+--++-++++--++--+----+++------+-++-+-+++---+-++------+---++-+-+++++------+++------+---+++++++++++---+-++++++++---------+---+---+-----------++++++++-++++++++++++ 66
|
||||
+++--++-+-+-+---+++++-++-+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--++-+-+-+---+++++-++- 456
|
||||
-+--++-++++-----+-+---+-+-++---++-------++--+-++--+++-+--+--+---++--+-++++--++-++---+------+--+-++++++++---+--+--+------+-+-+---++++++--+---++-++-+--+--++++---++++--+-+-+-++-++-+-++-+++-+--+++-+-++----++--+-+++-++++-+-++-++-+++------+-+++--++----+--+-+--+-++--++-+++--++--+-+---+--+-------+--+-+-+++-++-+----------++--++-+++-+-++++++---+++----++++++++++--+---++--++++-++---+-++++++-+--++++++-+-+-+-------++---+-++----+-+-+++-++-+--+++---++-++-----+--+++-++--+---++--+--++-------++-+-++-----+--++-+--+---+++++++--++-+++-+----+++++-------+++-+-+++++--++--++---+++---+++++++--+----+++-+-++++-+----++-+++-++---+++++--++---+++++-+--+-+---++------++--+----++-+++++--+-++-------++-+++-----++++-----+---+-----+++-+----++-+--+--+-+++-+----+++--++--++++++-++-----++---++++++---++- 112
|
||||
-+++++-----++-----++++++---+-+------+-++++++++++--+++++++++-+--+-+++---++---++--+-+++---++-+-+---++-+-++-+-------++--+-+-+--+++ 24
|
||||
-++++++++---+--------+---------+++----++++-++++++-++--+++-----+-+++++----+--+++++++++++-+++++ 12
|
||||
---++++--+--++---++----++------+-++---++++-++---++-++-++---++++--+-+-+++-+-+--++++--++-+++---++-++++--+++++--+---++++--+--++--+-----++--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---++++--+--++---++----++------+-++---++++-++---++-++-++---++++--+-+-+++-+-+--++++--++-+++---++-++++--+++++--+---++++--+--++--+-----++--++ 788
|
||||
+++++++++++++-------------------++++++++++++++-------------------+++++++++++++++++++++++-----------++++++++++++++++++++---------------+++++++++++++++++------------------------------+++++-----------------------++++--------------------------------------------------------------+++++++++++++++++++++++++++---------------++++--------------++++---------------++++-++----------------+++++++++++------------------+-+++++++++++++++-----------------+++---------++++++------+++++-++++++++++++++++++++++++++--+++-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---++++++++++++++++++++++-----------------++++++++++++++++++++++-------------------+--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------++++++------+++++------+++++++++++++++++++++-----++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------++ 289
|
||||
++++++++++ 10
|
||||
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1000
|
||||
--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ 2
|
||||
++--++-++---++-++--+--+-+-++---++-------+-------+--+--+++--++--+--+-++---+--++-+-++++++--+--+-+--+-++++---+----++--++--+++++-+-+--++++++-+++-----+++--+-+-+----++++--++-+--+++--+++-+--++++-+-+++-++++-+-+-+++-----+-++-----+++++++---+++-++------++-+-+-+-+--+-+----++----------++-++++-+--++++++-+++--+++--+-+-+-+----+++-+-+-++++-----+-+-----+-+++++--+-+--+++--+-+-+--+--+----++-++--+---++-++-+-+---++++++++-+----++--+-+-++-+--+----+---+++-+-+++--++--+-+---+-+-+---+++------++-+---++++++-++-++-+-++--++--+-------+-+-+--++--++++--+--+-+++-+--+--++--++-++--+++-++---+--+-+-+--++---+-++--+--+++-+-++-+-++-+++-+++--++--+-+--+----+---++++++++++-+-+----++++---++---++-+++--+-+------+++++--++--+++----++++++--++--+-+--++++--+++-+-+--+----+++------+----++-++-+-+--+++-+-++-++--+-+++++++++--+---++--+--++ 260
|
||||
---------- 10
|
||||
+-+-+-+ 3
|
||||
++---+-+-++---+--++----+++-+-+-+-+-+--++++++----+-+++---+--+-+-++--+---++-++++--+-----++++-+--+------++++-+++--+--+++--+++--+--+-++-++--+++--+++---++++-+++++-++-+--+++++-----------++++--++--+-+---+-+-+---++-+-++++++--+-+-+++---++-++++-++--+--+--+-++----++----+---++-+++-+++----++-+++++++-----++-+++++++---------++++++++++-----+-+-----++++-++---+--++-+-+----++-+-++-----+-++++-+++-------+++++-+++-+---+++-+--+++--+--+--++++----+++--+-+-+--++-++---+-++-+++++-+-++--++--+---+--+--+-+--++-+-++-+--+++++++++-+++++++++------+++--++++---+-+----++-+-+-+----++-+-+--+--+---+-+++-+-++-+--+++----+- 34
|
||||
-- 2
|
||||
+-+-+-+-+- 2
|
||||
--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ 3
|
||||
++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++- 3
|
||||
-+-+-+--+--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-+-+-+--+-- 131
|
||||
+-+-+-+-+- 3
|
||||
+++++++++++-+--------+++++---++++++----------------+++++------------++++++++++++++++++++--++++++++-----+++--++++---+--++++++++++-----++++---+++++-++++++++++++++------+++++---+++++++++++++-------+----------------++++++------+++-----------+++--------+++-----+++--+--+--++++----------------+---+-----------+------+++++++----------------+++--++++--++++++++++++++++++++-----++++++++++++------++++++++++++++++ 77
|
||||
--+++++--++---+--++-+-++--+++++--+-+-----++++-+-+---+--+----++---+--+-+------------------------------------------------------------------------------------------------------------------++-----++--+++-++--+-+--++-----++-+-+++++----+-+-+++-++-++++--+++-++-+-++ 185
|
||||
-+++++++++ 2
|
||||
-++++++++- 9
|
||||
-+----++-+-+++-+--++----+++-++--+-++-+--+-+-+-+--+-++--++----+------+++++---++-+-+-+-++++--+---++--+---------+---++-++++-+++++-----+++-++--+-++++-++-----+--+-++++--++++-+-++-+++++----+---++++--++-----++++++-+++-+++-----------------------------------------------------------------------------------------------------------------------+-++++--+-+---+-++--++++---+--++-+--+-++-+-+-+-++-+--++--++++-++++++-----+++--+-+-+-+----++-+++--++-+++++++++-+++--+----+-----+++++---+--++-+----+--+++++-++-+----++----+-+--+-----++++-+++----++--+++++------+---+--- 333
|
||||
-+--+++++-+----++-++-+---+-++--++-+-+---++-----++++++--++-----+++++++++--+---+-++-++-++--+--+---+++++-+----++++---+-+-+--++---++++++-++-+--++++-+++++++--+---+-+-+-+-++-+-+---+-++--+-++----+-+--+--++++-+-+--++--++---+-++--+++-+---+-+----++++-+-++-+---+-++----+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-++-----+-++++--+--+-+++-+--++--+-+-+++--+++++------++--+++++---------++-+++-+--+--+--++-++-+++-----+-++++----+++-+-+-++--+++------+--+-++----+-------++-+++-+-+-+-+--+-+-+++-+--++-+--++++-+-++-++----+-+-++--++--+++-+--++---+-+++-+-++++----+-+--+-+++-+--++++- 481
|
||||
-++++++------+--++-++++----+++++-+++-++-++++++----+++------------+++++--------------------------------+-------+++++++++++---+++++++---+++-----------+++++-----------++++-++++++++++++++-+++------+++++++-+++++------++++++---++---+++++-+--+-++++++++---+++++++-+--+++--+---+--++----+----++++-++++---+--++-+---+--++----++---+-----++--------------+-----++++++++++++--+++--+++++++++++---+++++++---+++-----------+++++-----------++++-++++++++++++++-+++------+++++++-+++++------++++++---++---+++++-+--+-++++++++---+++++++++--+++++-+++++++++---+++++++++--++++-----++-++++---+-+-++--+++-+----+-++++++++++++++-+++++-----------+++---+++++++++ 255
|
||||
-++++++++- 2
|
||||
-+-++---++--+++-+--++--+++++-+-+------+-+++++--++----+-+++-++--+-+--+---+--+----+--+-+-+-+---+--+-++++--++----+-++---+-+-++-+------+---+++--+------+++-+--- 57
|
||||
-+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-+ 2
|
||||
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 999
|
||||
-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 2
|
||||
+------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------+++ 90
|
||||
---+----+-+---+++-+-----++-++--+++++-+++-------+-++++++++-+--+--+++--++-+-+-++++-+--+++--++++-+-----+--+-++--++--+----+-----++--+-++++--++--+-++++-++----+++------+-+++--+---++++-+--++-+++-+++----++++++-+-+-+-+++++--+---+---------+-++---++++-++++-+-+-+-----+-++--++--+--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---+----+-+---+++-+-----++-++--+++++-+++-------+-++++++++-+--+--+++--++-+-+-++++-+--+++--++++-+-----+--+-++--++--+----+-----++--+-++++--++--+-++++-++----+++------+-+++--+---++++-+--++-+++-+++----++++++-+-+-+-+++++--+---+---------+-++---++++-++++-+-+-+-----+-++--++--+-- 527
|
||||
--------- 3
|
||||
+- 2
|
||||
-+++-+++-++------+-+--+--++++-----+--+-+-+++-+-++--+----+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+---+--++++++-+-++-++----+++++-++-+-+---+-+--++-++++- 818
|
||||
+--------+-------- 9
|
||||
+-+-+-+- 3
|
||||
-+++++++-+ 2
|
||||
-+-+-+-+-+ 2
|
||||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 20
|
||||
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 3
|
||||
----+--+---+--+++-+-++++-+---+++---+---+++-+++++---+-+--++-+---+-+---+--+-++-++++--+--+++-++++++++--++++---+-++++---+-+----+-+-++-+--+++-+--+-++--------+---++-++++++++--+--+--+-----+-+-----+------+-++-+------++--++---+--++-+-++-+-++++--+----+++----++--++-++-+-----+--++---+-----++-+-+--++-++++-++--+-+++++---+--+-+--+++++--++-+--+-+++--++--+---++++---++-+----+---+++++++--+-+------++-+-+++-----++++++-++++-+---+++------++-----+++-++-+-+--+++--+++-++--++---+--++-+---+-------+-+---------+-+--+------+---+--+++--+--+-+-++--+-+-++++++--+-+----+-+--+-+-++--++--+---+++-++--+++-+-+++--+++---+++++++-------++--++---++----+---++++--+-+-++---+++---+------+++----++----+-+-+-+-+++++++++++++--+++++++--+++-++---+-+++-+--+-----++-+-++++-++-+++--+-+--+------++---+------+--+-++-+-++-++--+++-+-+-+++-+-+-+-+-++--+-++++--+++--++-+----+-+-+--+++-+---+++---+----+-+++++++-------+-+- 229
|
||||
--++--++-++-+++-++--++++--+-+-++-++--+--+---+--++------+++-+++++++--++--++-++-+++-++--++++--+-+-++-++--+--+---+--++------+++-+ 66
|
||||
+++++--+-+------+++--+---------+++++++++-++++++-+++------++--------++++-++++++---+-+++-----++++-+-+-+------+-++++-+-++++-+--------+++----+-++-+++++++--+--++++++-+--+---+---+--+-----+-+++-----+++++-+-++++-+---+-+++---+------++++--+++-----++--+++-++---+++--+++-+-++-+--++-+-+-------------++-+-+---++++-++-+++-----++++++----------++---+-+--++++---++---++++-+++--+-----+++++-+++-+--+----+-++-++++-----+----------+--+--+++++----+-------++-+-+++-+-++++--++++---+++++-+++-++++-+++-++-+++--+++++-----------+--+--+++--++++++++-------+---+++-++++--+++-++ 90
|
||||
++-++-++-++--++--++-+-+++--+++-++-------++++---++-+-+-+-+-+--+--+++-+-+-+-+----+---+--+++--++--+---+--+-+-++-----+-+----+-++--++-+---++-+-+----+-+++--+-+++++-++-+----++---+++++++--+-+--++-++-++-+-----+-++++++++++-++-+-+-++++-+-++--+--+-+----++-++---+-++-+-++-++-++---++++-----+--++-++--+++++-+-+---+-+-+++++--++-++-+++-++++-+++++-+++--+-++-+++++---++++--+----+++++---++-+-++--+--++-+++-++++---+++-+++-++++++--+++---+++++--+-+-+-+---+-++-+------++++--+-+-+--++-+-++--++-++--+--+-++-+-++-++---+-++-+--++-+++-+-----++---+--+-+++++-+-+-+----+++++-+---+++++---+++--+--+++--+++--+-++---+-++-+++-+++---++-+----+---+----++-+--+----++++-+-+-+--+-+++--------+-------+++++++++-----+-----+++-+- 86
|
||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- 500
|
||||
-++-++++-++-+-+---+++++++++--++--+-++-++-+-++++++-++--++-++----+-+--+-+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-++++++++++++++++++++++++++++++++++++++++-++-++++-++-+-+---+++++++++--++--+-++-++-+-++++++-++--++-++----+-+--+-++ 498
|
||||
---------- 2
|
||||
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 998
|
||||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1000
|
||||
++--++--++++--++-+++---+++-+-+-+---+--+--+-+---++-------+++-++-+----++-----+++-+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------++--++----++--+---+++---+-+-+-+++-++-++-+-+++--+++++++---+--+-++++--+++++---+- 586
|
||||
---------- 3
|
||||
--++--+--++--++---+------+++++-+++-+-+++++----+-+++--+---++----++-++-++-+--+--++-+-+++++-----+-++++-++-++++--++-+++-------+++-++-++++-+-+++-+------+-+--+-+++---+++--+-+--++++++++-------+--++-------++++-++----+--++--+--++--++---+------+++++-+++-+-+++++----+-+++--+---++----++-++-++-+--+--++-+-+++++-----+-++++-++-++++--++-+++-------+++-++-+++--+-+++-+------+-+--+-+++---+++--+-+--++++++++-------+--++-------++++-++---- 209
|
||||
--++----+-++--++--+--++++++----+------+---+-+-++++--+--+-+-++--+-+---+-+-++-++-+++--++-+--++--+++++---+-++-+-----++---++-+--+++++--+-+++----------+--------+--+-++----+------++-++++-+-+++--++++-+----+---+----+----+-+---+---++-+-+--+++-++-+++++-+-+-++-+---++-+++----++++-++-+++++---+-+-+--++-++-+-+++--+--+---+--+--+-++----++-+--+-+-+--++--+-+-++--+----+-+--++---+---+-+-+-----+-++------++-+-+---+-++-+--+++++++-+---+-----++++++++-+--+++----+-+--++--+-++--+++-+--+++--+-+--+-+-+++++-++-++-+--+--+++++--++------++-+-----++------+-+----+--+--+--++++-+-+++-++--+-+--+++++--+--+++-++--+--+++++--+-+-+--++-+---++++-+-++---++---++-+-+--------+++-++---+-++--++--++++--+-+---++++----++---+-+--+-++---+-++++-++-+++--+-+-+++++---+++++---+-+-+-+---+++-+-++-----++-+++----++-------+--+++++-+--+++++++-++++-+---++--+--++--+--+-+++++-+-+++--++-+--++++---+----++-++++-+++--+----++++---++++--------+----+---+--------+--+----+-++++-+-++--++--+----+-++---++ 36
|
||||
++-+-++-+-++-+----+---++-++-++------++-++++--+-++--+-----++-+++--+-+--+----+-----++-+++--+-+--+++-+--++-+--++++--+--+++-+++--+++--+-+---+-+-+-+--+---++--++--+++++--++++++-+-+---++++++--+----++-+--++-+++++--+---++-+-++-++++-+++++--+---++-+-++---+-++--+-++----++-++---+---++---++-+-+++-+-+-+-++-++++--+-++---+-+--+-+++-+++--++ 147
|
||||
+++-++-+---++--+++++-+-+--+-+-+--+--++-++-+--+++------+++--+--+----+++-++--+++-+++++++--++--++--++--+++-+++-+--++--+++++-+-++--+---++++++-++-++++-+-+-++--+--++--++++-+-----+-+---++++--+-+++---++++-+-+-+---+-+--+-++-++-++++-+-+--++++++----+--++-+-++-+----+++--+---++-++++++++-+-+++--+++-++++--+--+-------+-+---+---+-+-++---+---+++----+++--+++-++++++-+--+-+++--+++-+++-+++-++--+--+----++++-++++++++-++---+--+-+---+--++++++-+-+++++-+-+-++-+++-+------+--+--+---++--+---++++-++----++++--+-+--+++-+++-+-+++-+++++-+++++-+++-++++-+++++++--+-+--+-+-+-++-+++----++--++---+-+-+++--+-++-+------+----+--+++-++-++++-----+-+++--++++-++--++-------+-+--+++++++-+++-+-+--+---+-++++-+-++-++-++-+-+--++++-+-----++-++++----+-++--+-+---+++++++++-++--+---+---++++++--++---+++-+++-++--+-+-+-+--+++-+--+--+-++-+ 242
|
||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1000
|
||||
++++++++++-----------++++++++++---------++-+++++++++++++++---+-+++++-------+------+++++-+++++++++++++------++++++----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+++++++++++----------+++++++++--+---------------+++-+-----+++++++-++++++-----+-------------++++++------+++ 562
|
||||
++ 2
|
||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- 2
|
||||
++---+-++++-+-++-----+---+----+-+--+++++-----++++++++++---------+++--+--+-+++-++----++-++++++++---+-+--++ 21
|
||||
--+-++++-++++--+++++++-+--++-+-+-+-+-++--++--+--+++-----++-++++-+-+++-+--+++---++----+-+-+---+---++--+++----++-+-++-+++---+++-+++--++---+-++---+---++----+++--+----+++++-++++-++++---+-++--++---+-+++++-++---++++-+++++-+++++-++-+--++++-+-+-+---+---+-+---+-+--++-------++-++--+--++-+++-++-++++++--+++-++-+-+++--++-----+++--++++-+--++--++--+--+---++-++-+--+---++-+--+-++-+--++---+-++-++++-+----+++++++----+---+-++---+++++++----+++++-++--+++++---+-++-----+++++--++-+--+----++--+-++----------+++++++++-++++++---------+++--++++-+--++-----+--++-+---+--+--+++-+++++++++--++-+-+-++-+-++--++++---+-++-+-++--++++-+-+---+-+++--++-+----+-+--+- 80
|
||||
-+++++++-- 2
|
||||
+++-----++-++----++--+--+---+-+---++-++-+++-++-+---+--++++--+++---++-+++-+--+-+--++++---+--+-+---++-++-++-+-++-++-+-+-------++--+++++----+++++--+--++---+-+---++-+----++---+--------+--+-+-+----+--++----++-+---++++-++-++-+----+-++-++-+-++-++---+-+-+-+++----++++++-++--+-+----+--+--+++---+-++-++-----+---++----+----++-+--+-+++++----+--+++--+--++--+-+++--++++-++--+--+----+++----++--++-+-+---+++-++++-+--+-++-+-+++++-+++-+++--++--+-----++--+---+-+----+--+++--+++--+-------+-+-+--++---+++++---++++-+---+-++--++--++-++---+-+-+-++-++++---+-++-+-+--++++-+-+-++-+-+++-+-+-+++++-+----++++----++-+-++---+-+++++++++-+-+-+-++--+-+++++-+-+-++++-+--++-+++-++--+--++---++--++---+ 97
|
||||
|
||||
-1
|
||||
1
|
||||
11 src/chelper
|
||||
16 -Xmx256m -Xss64m
|
||||
4 Main
|
||||
13 chelper.TaskA
|
||||
39 net.egork.chelper.checkers.TokenChecker
|
||||
0
|
||||
0
|
||||
10 2017.04.08
|
||||
0
|
||||
1
|
||||
14 io.InputReader
|
||||
15 io.OutputWriter
|
||||
0
|
||||
0
|
53
archive/2017.04/2017.04.08 - unsorted/TaskB.java
Normal file
53
archive/2017.04/2017.04.08 - unsorted/TaskB.java
Normal file
@@ -0,0 +1,53 @@
|
||||
package chelper;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import io.InputReader;
|
||||
import io.OutputWriter;
|
||||
import misc.GCJSolution;
|
||||
|
||||
|
||||
public class TaskB extends GCJSolution {
|
||||
|
||||
public void solve(int testNumber, InputReader in, OutputWriter out) {
|
||||
wrapSolve(testNumber, in, out);
|
||||
}
|
||||
|
||||
long parse(char[] s) {
|
||||
return Long.parseLong(new String(s));
|
||||
}
|
||||
|
||||
boolean isGood(char[] s) {
|
||||
char[] s2 = Arrays.copyOf(s, s.length);
|
||||
Arrays.sort(s2);
|
||||
return Arrays.equals(s, s2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void solve(int testNumber) {
|
||||
char[] s = in.nextString().toCharArray();
|
||||
|
||||
List<char[]> vars = new ArrayList<>();
|
||||
|
||||
vars.add(Arrays.copyOf(s, s.length));
|
||||
|
||||
for (int i = 0; i < s.length; i++) {
|
||||
char[] s2 = Arrays.copyOf(s, s.length);
|
||||
|
||||
if (s[i] >= '1') {
|
||||
s2[i] = (char) (s[i] - 1);
|
||||
for (int j = i + 1; j < s.length; j++) {
|
||||
s2[j] = '9';
|
||||
}
|
||||
vars.add(s2);
|
||||
}
|
||||
}
|
||||
|
||||
vars = vars.stream().filter(this::isGood).sorted((o1, o2) -> Long.compare(parse(o1), parse(o2))).collect(Collectors.toList());
|
||||
|
||||
out.println(parse(vars.get(vars.size() - 1)));
|
||||
}
|
||||
}
|
244
archive/2017.04/2017.04.08 - unsorted/TaskB.task
Normal file
244
archive/2017.04/2017.04.08 - unsorted/TaskB.task
Normal file
@@ -0,0 +1,244 @@
|
||||
5 TaskB
|
||||
12 MULTI_NUMBER
|
||||
8 STANDARD
|
||||
9 input.txt
|
||||
8 STANDARD
|
||||
10 output.txt
|
||||
3
|
||||
0
|
||||
31 4
|
||||
132
|
||||
1000
|
||||
7
|
||||
111111111111111110
|
||||
65 Case #1: 129
|
||||
Case #2: 999
|
||||
Case #3: 7
|
||||
Case #4: 99999999999999999
|
||||
|
||||
|
||||
1
|
||||
1
|
||||
394 100
|
||||
132
|
||||
1000
|
||||
7
|
||||
813
|
||||
761
|
||||
1
|
||||
248
|
||||
309
|
||||
449
|
||||
627
|
||||
137
|
||||
967
|
||||
269
|
||||
388
|
||||
646
|
||||
859
|
||||
443
|
||||
8
|
||||
708
|
||||
108
|
||||
633
|
||||
609
|
||||
781
|
||||
404
|
||||
65
|
||||
179
|
||||
228
|
||||
897
|
||||
210
|
||||
982
|
||||
636
|
||||
87
|
||||
246
|
||||
140
|
||||
220
|
||||
759
|
||||
805
|
||||
999
|
||||
706
|
||||
325
|
||||
586
|
||||
429
|
||||
278
|
||||
512
|
||||
129
|
||||
684
|
||||
562
|
||||
870
|
||||
490
|
||||
470
|
||||
638
|
||||
263
|
||||
701
|
||||
328
|
||||
591
|
||||
339
|
||||
201
|
||||
677
|
||||
938
|
||||
343
|
||||
595
|
||||
687
|
||||
607
|
||||
574
|
||||
271
|
||||
387
|
||||
459
|
||||
226
|
||||
744
|
||||
621
|
||||
187
|
||||
525
|
||||
634
|
||||
273
|
||||
522
|
||||
846
|
||||
703
|
||||
698
|
||||
368
|
||||
773
|
||||
451
|
||||
655
|
||||
244
|
||||
229
|
||||
232
|
||||
180
|
||||
175
|
||||
943
|
||||
434
|
||||
456
|
||||
93
|
||||
341
|
||||
66
|
||||
746
|
||||
569
|
||||
842
|
||||
70
|
||||
331
|
||||
427
|
||||
363
|
||||
|
||||
-1
|
||||
1
|
||||
2
|
||||
1435 100
|
||||
132
|
||||
1000
|
||||
7
|
||||
111111111111111110
|
||||
52233344555577889
|
||||
11213455578
|
||||
441
|
||||
112344556994475697
|
||||
11112244441
|
||||
290752954014001643
|
||||
1110109208
|
||||
3123444578
|
||||
4123345689
|
||||
319078819330167357
|
||||
729464470438415066
|
||||
56497687766494867
|
||||
531309546354305306
|
||||
812233344455677888
|
||||
338
|
||||
23755577788899
|
||||
31113456667900
|
||||
998785093824284001
|
||||
307966583387361360
|
||||
661400997472920416
|
||||
1111111012
|
||||
112222132449759484
|
||||
11111111222220366
|
||||
82223345667778888
|
||||
1737397363
|
||||
12233335566557955
|
||||
201939802410664807
|
||||
36556667888899
|
||||
9899999999
|
||||
497897495749774791
|
||||
11156888899945
|
||||
16890335899
|
||||
1113123666
|
||||
206
|
||||
134881440096862376
|
||||
18099857461
|
||||
76766679878787
|
||||
8
|
||||
83
|
||||
952517863572053653
|
||||
1000000000000000000
|
||||
269090516837409607
|
||||
1122233317
|
||||
11111111111111106
|
||||
364162038890924619
|
||||
900901988555113906
|
||||
1
|
||||
32999999999999
|
||||
1111111110
|
||||
941721579920721938
|
||||
405592356612716516
|
||||
76999999999999999
|
||||
235683911930341210
|
||||
13444556736
|
||||
65999999999
|
||||
71222335677887
|
||||
585797590520470246
|
||||
11223555527349
|
||||
704276516572886869
|
||||
109999999999999999
|
||||
359268530677407719
|
||||
73334445677888999
|
||||
141244455556688899
|
||||
76
|
||||
207224293494964588
|
||||
870614541780094049
|
||||
112344444555666900
|
||||
804655777964741391
|
||||
748645996657567575
|
||||
703694394993403637
|
||||
11111111111111110
|
||||
167995856995777657
|
||||
879
|
||||
11111334566789
|
||||
111112223344455503
|
||||
23444422578
|
||||
999999999999999999
|
||||
246
|
||||
11222255519443347
|
||||
31111134557788898
|
||||
81446667900
|
||||
41223336888
|
||||
93345677779
|
||||
82
|
||||
8389648799
|
||||
340
|
||||
33556666899
|
||||
439119571286482627
|
||||
45
|
||||
412223334557778899
|
||||
257708970528993425
|
||||
32
|
||||
12551123444679
|
||||
5224567890
|
||||
11111122223330
|
||||
899889122355696633
|
||||
|
||||
-1
|
||||
1
|
||||
11 src/chelper
|
||||
16 -Xmx256m -Xss64m
|
||||
4 Main
|
||||
13 chelper.TaskB
|
||||
39 net.egork.chelper.checkers.TokenChecker
|
||||
0
|
||||
0
|
||||
10 2017.04.08
|
||||
0
|
||||
1
|
||||
14 io.InputReader
|
||||
15 io.OutputWriter
|
||||
0
|
||||
0
|
48
archive/2017.04/2017.04.09 - unsorted/TaskC.java
Normal file
48
archive/2017.04/2017.04.09 - unsorted/TaskC.java
Normal file
@@ -0,0 +1,48 @@
|
||||
package chelper;
|
||||
|
||||
import java.util.SortedMap;
|
||||
import java.util.TreeMap;
|
||||
|
||||
import io.InputReader;
|
||||
import io.OutputWriter;
|
||||
import misc.GCJSolution;
|
||||
import misc.SimpleSavingChelperSolution;
|
||||
|
||||
|
||||
public class TaskC extends GCJSolution {
|
||||
|
||||
public void solve(int testNumber, InputReader in, OutputWriter out) {
|
||||
wrapSolve(testNumber, in, out);
|
||||
}
|
||||
|
||||
void add(SortedMap<Long, Long> map, long x, long c) {
|
||||
map.putIfAbsent(x, 0L);
|
||||
map.put(x, map.get(x) + c);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void solve(int testNumber) {
|
||||
long n = in.nextLong();
|
||||
long k = in.nextLong();
|
||||
|
||||
long c = 0;
|
||||
|
||||
SortedMap<Long, Long> map = new TreeMap<>();
|
||||
map.put(n, 1L);
|
||||
|
||||
while (true) {
|
||||
long l = map.lastKey();
|
||||
long lc = map.get(l);
|
||||
map.remove(l);
|
||||
|
||||
if (c + lc >= k) {
|
||||
out.println((l / 2) + " " + ((l - 1) / 2));
|
||||
return;
|
||||
}
|
||||
c += lc;
|
||||
|
||||
add(map, l / 2, lc);
|
||||
add(map, (l - 1) / 2, lc);
|
||||
}
|
||||
}
|
||||
}
|
357
archive/2017.04/2017.04.09 - unsorted/TaskC.task
Normal file
357
archive/2017.04/2017.04.09 - unsorted/TaskC.task
Normal file
@@ -0,0 +1,357 @@
|
||||
5 TaskC
|
||||
12 MULTI_NUMBER
|
||||
8 STANDARD
|
||||
9 input.txt
|
||||
8 STANDARD
|
||||
10 output.txt
|
||||
5
|
||||
0
|
||||
30 5
|
||||
4 2
|
||||
5 2
|
||||
6 2
|
||||
1000 1000
|
||||
1000 1
|
||||
68 Case #1: 1 0
|
||||
Case #2: 1 0
|
||||
Case #3: 1 1
|
||||
Case #4: 0 0
|
||||
Case #5: 500 499
|
||||
1
|
||||
1
|
||||
122 4
|
||||
1000000000000000000 123
|
||||
1000000000000000000 123123
|
||||
1000000000000000000 123123213
|
||||
1000000000000000000 1000000000000000000
|
||||
-1
|
||||
0
|
||||
2
|
||||
769 100
|
||||
4 2
|
||||
5 2
|
||||
6 2
|
||||
1000 1000
|
||||
1000 1
|
||||
901 690
|
||||
420 404
|
||||
869 825
|
||||
999 487
|
||||
1000 127
|
||||
2 2
|
||||
338 283
|
||||
999 512
|
||||
999 999
|
||||
999 495
|
||||
986 774
|
||||
999 255
|
||||
845 684
|
||||
500 127
|
||||
711 552
|
||||
958 880
|
||||
1000 128
|
||||
3 1
|
||||
1 1
|
||||
5 1
|
||||
837 830
|
||||
999 998
|
||||
4 1
|
||||
437 418
|
||||
257 253
|
||||
361 281
|
||||
500 2
|
||||
500 500
|
||||
500 1
|
||||
500 244
|
||||
999 511
|
||||
874 660
|
||||
269 240
|
||||
500 246
|
||||
1000 488
|
||||
1000 511
|
||||
999 128
|
||||
999 499
|
||||
879 766
|
||||
1000 999
|
||||
500 248
|
||||
500 174
|
||||
944 792
|
||||
1000 495
|
||||
1000 2
|
||||
500 245
|
||||
1000 256
|
||||
999 497
|
||||
290 280
|
||||
748 659
|
||||
414 396
|
||||
500 255
|
||||
650 590
|
||||
1000 489
|
||||
610 522
|
||||
500 116
|
||||
999 1
|
||||
999 467
|
||||
405 368
|
||||
668 545
|
||||
999 2
|
||||
802 670
|
||||
720 583
|
||||
844 827
|
||||
500 117
|
||||
999 127
|
||||
999 488
|
||||
355 342
|
||||
1000 500
|
||||
1000 421
|
||||
640 563
|
||||
2 1
|
||||
500 256
|
||||
500 128
|
||||
1000 512
|
||||
338 321
|
||||
500 74
|
||||
760 612
|
||||
341 268
|
||||
500 249
|
||||
3 2
|
||||
610 532
|
||||
1000 498
|
||||
923 732
|
||||
963 905
|
||||
847 782
|
||||
999 256
|
||||
500 499
|
||||
500 250
|
||||
788 675
|
||||
1000 255
|
||||
999 498
|
||||
703 563
|
||||
1000 499
|
||||
592 462
|
||||
|
||||
-1
|
||||
0
|
||||
3
|
||||
1263 100
|
||||
4 2
|
||||
5 2
|
||||
6 2
|
||||
1000 1000
|
||||
1000 1
|
||||
821275 662896
|
||||
370621 322685
|
||||
500000 128
|
||||
999999 475712
|
||||
999999 128
|
||||
999999 499998
|
||||
896945 811342
|
||||
431393 425890
|
||||
381788 365508
|
||||
942120 863910
|
||||
621693 498655
|
||||
1 1
|
||||
904816 901671
|
||||
500000 237857
|
||||
300739 297343
|
||||
500000 172962
|
||||
1000000 262143
|
||||
734360 697121
|
||||
500000 249998
|
||||
999999 475711
|
||||
500000 500000
|
||||
450609 408867
|
||||
999999 2
|
||||
500000 2
|
||||
500000 127
|
||||
725952 689643
|
||||
572847 446591
|
||||
500000 499999
|
||||
1000000 127
|
||||
999999 457010
|
||||
1000000 500000
|
||||
849170 739229
|
||||
771396 752436
|
||||
344361 268764
|
||||
511147 390215
|
||||
999999 499999
|
||||
999999 127
|
||||
1000000 487852
|
||||
999999 489660
|
||||
1000000 499999
|
||||
3 2
|
||||
500000 250000
|
||||
872095 684924
|
||||
999999 262143
|
||||
874339 839950
|
||||
999999 999998
|
||||
1000000 475712
|
||||
1000000 1000000
|
||||
500000 249999
|
||||
646961 635502
|
||||
5 1
|
||||
570324 507670
|
||||
1000000 128
|
||||
268384 216076
|
||||
1000000 499998
|
||||
999999 524287
|
||||
407340 375069
|
||||
2 1
|
||||
851352 644003
|
||||
1000000 475713
|
||||
3 1
|
||||
519729 498412
|
||||
999999 499997
|
||||
1000000 999999
|
||||
500000 131072
|
||||
333275 315459
|
||||
977626 794616
|
||||
523053 411776
|
||||
500000 262143
|
||||
891025 770291
|
||||
1000000 262144
|
||||
640392 499350
|
||||
999999 524288
|
||||
999999 1
|
||||
2 2
|
||||
500000 237856
|
||||
616030 555591
|
||||
756266 717556
|
||||
1000000 413449
|
||||
385916 360831
|
||||
358463 333483
|
||||
500000 238557
|
||||
1000000 1
|
||||
416201 402940
|
||||
4 1
|
||||
500000 262144
|
||||
500000 131071
|
||||
1000000 2
|
||||
1000000 524287
|
||||
999999 262144
|
||||
347025 305672
|
||||
999999 999999
|
||||
689239 609335
|
||||
1000000 524288
|
||||
500000 1
|
||||
|
||||
-1
|
||||
0
|
||||
4
|
||||
3232 100
|
||||
4 2
|
||||
5 2
|
||||
6 2
|
||||
1000 1000
|
||||
1000 1
|
||||
500000000000000000 127
|
||||
500000000000000000 144115188075855872
|
||||
699326990685848072 680635305377535354
|
||||
500000000000000000 163740560308998749
|
||||
381427200931521728 346261337476093587
|
||||
999999999999999999 423539247696576512
|
||||
1000000000000000000 499999999999999999
|
||||
865421098959557555 684155182903419004
|
||||
360917918673087341 303601411776435264
|
||||
1000000000000000000 128
|
||||
999999999999999999 127
|
||||
887304098876408148 859546197722969838
|
||||
1000000000000000000 527914014562736920
|
||||
3 2
|
||||
500000000000000000 143500374754088600
|
||||
500000000000000000 250000000000000000
|
||||
658959080646161996 525500399070216400
|
||||
607155866659799059 478808602542666155
|
||||
384929880583945989 322262197235520868
|
||||
5 1
|
||||
259330858147696499 199327637605439133
|
||||
1000000000000000000 423539247696576512
|
||||
1000000000000000000 127
|
||||
732760568021509086 618127296652689174
|
||||
1000000000000000000 2
|
||||
3 1
|
||||
1 1
|
||||
500000000000000000 211769623848288256
|
||||
500000000000000000 249999999999999999
|
||||
502627534851421451 468903173610277009
|
||||
601191797848932721 548168387726018986
|
||||
999999999999999999 329367277327674123
|
||||
575159299148999951 528582889012600303
|
||||
856750160143332645 664434146050029993
|
||||
2 2
|
||||
1000000000000000000 500000000000000000
|
||||
999999999999999999 423539247696576511
|
||||
707990425632737172 663859474706555763
|
||||
2 1
|
||||
999999999999999999 576460752303423488
|
||||
999999999999999999 2
|
||||
868779697169149743 664224330639358108
|
||||
999999999999999999 499999999999999997
|
||||
795983503314000778 781519297029362768
|
||||
4 1
|
||||
500000000000000000 243197388029012199
|
||||
500000000000000000 128
|
||||
999999999999999999 288230376151711744
|
||||
1000000000000000000 288230376151711744
|
||||
500000000000000000 211769623848288257
|
||||
999999999999999999 499999999999999999
|
||||
999999999999999999 284008158727382839
|
||||
735221576388427970 621351543070068507
|
||||
500000000000000000 288230376151711743
|
||||
812245689558992791 779051157379015731
|
||||
365396181115446694 332120320444002379
|
||||
533883865169233759 448869823804426904
|
||||
999999999999999999 999999999999999999
|
||||
1000000000000000000 368753975369197209
|
||||
1000000000000000000 1
|
||||
1000000000000000000 576460752303423487
|
||||
500000000000000000 144115188075855871
|
||||
997509696692707666 857737495006784946
|
||||
500000000000000000 1
|
||||
1000000000000000000 288230376151711743
|
||||
742770676193676566 717591306620485391
|
||||
900060051083134558 855374461530273050
|
||||
1000000000000000000 576460752303423488
|
||||
1000000000000000000 999999999999999999
|
||||
1000000000000000000 499999999999999998
|
||||
999999999999999999 538423766738945342
|
||||
500000000000000000 499999999999999999
|
||||
1000000000000000000 423539247696576513
|
||||
500000000000000000 2
|
||||
999999999999999999 576460752303423487
|
||||
418620651229100384 347964917583558534
|
||||
999999999999999999 499999999999999998
|
||||
413661162123781364 386134670643293570
|
||||
982940613601891396 779774005848863932
|
||||
999999999999999999 1
|
||||
999999999999999999 288230376151711743
|
||||
494695569001444768 415274375890824505
|
||||
500000000000000000 249999999999999998
|
||||
1000000000000000000 1000000000000000000
|
||||
744566784267451322 595932167209774263
|
||||
999999999999999999 999999999999999998
|
||||
645924560384020297 514400404428734131
|
||||
571961719311704536 434563032656917709
|
||||
500000000000000000 288230376151711744
|
||||
1000000000000000000 287010051740529317
|
||||
787428860511543624 693975536748743635
|
||||
841980470699998239 678129661777325429
|
||||
580224443060375196 444847741719779338
|
||||
500000000000000000 500000000000000000
|
||||
999999999999999999 128
|
||||
|
||||
-1
|
||||
1
|
||||
11 src/chelper
|
||||
16 -Xmx256m -Xss64m
|
||||
4 Main
|
||||
13 chelper.TaskC
|
||||
39 net.egork.chelper.checkers.TokenChecker
|
||||
0
|
||||
0
|
||||
10 2017.04.09
|
||||
0
|
||||
1
|
||||
14 io.InputReader
|
||||
15 io.OutputWriter
|
||||
0
|
||||
0
|
44
archive/2017.04/2017.04.16 - unsorted/TaskA.java
Normal file
44
archive/2017.04/2017.04.16 - unsorted/TaskA.java
Normal file
@@ -0,0 +1,44 @@
|
||||
package chelper;
|
||||
|
||||
import io.InputReader;
|
||||
import io.OutputWriter;
|
||||
import misc.SimpleSavingChelperSolution;
|
||||
|
||||
|
||||
public class TaskA extends SimpleSavingChelperSolution {
|
||||
|
||||
public void solve(int testNumber, InputReader in, OutputWriter out) {
|
||||
wrapSolve(testNumber, in, out);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void solve(int testNumber) {
|
||||
int n = in.nextInt();
|
||||
int m = in.nextInt();
|
||||
|
||||
int[][] a = new int[n][m];
|
||||
|
||||
int c = 1;
|
||||
|
||||
for (int i = 0; i < 100; i++) {
|
||||
for (int j = 0; j < 100; j++) {
|
||||
int x = i - j;
|
||||
int y = j;
|
||||
|
||||
if (x < 0 || y < 0 || x >= n || y >= m) {
|
||||
continue;
|
||||
}
|
||||
|
||||
a[x][y] = c;
|
||||
c++;
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < n; i++) {
|
||||
for (int j = 0; j < m; j++) {
|
||||
out.print(a[n - 1 - i][m - 1 - j] + " ");
|
||||
}
|
||||
out.println();
|
||||
}
|
||||
}
|
||||
}
|
31
archive/2017.04/2017.04.16 - unsorted/TaskA.task
Normal file
31
archive/2017.04/2017.04.16 - unsorted/TaskA.task
Normal file
@@ -0,0 +1,31 @@
|
||||
5 TaskA
|
||||
12 MULTI_NUMBER
|
||||
8 STANDARD
|
||||
9 input.txt
|
||||
8 STANDARD
|
||||
10 output.txt
|
||||
1
|
||||
0
|
||||
9 2
|
||||
2 3
|
||||
3 2
|
||||
27 6 4 2
|
||||
5 3 1
|
||||
6 4
|
||||
5 2
|
||||
3 1
|
||||
1
|
||||
11 src/chelper
|
||||
16 -Xmx256m -Xss64m
|
||||
4 Main
|
||||
13 chelper.TaskA
|
||||
39 net.egork.chelper.checkers.TokenChecker
|
||||
0
|
||||
0
|
||||
10 2017.04.16
|
||||
0
|
||||
1
|
||||
14 io.InputReader
|
||||
15 io.OutputWriter
|
||||
0
|
||||
0
|
176
archive/2017.04/2017.04.16 - unsorted/TaskB.java
Normal file
176
archive/2017.04/2017.04.16 - unsorted/TaskB.java
Normal file
@@ -0,0 +1,176 @@
|
||||
package chelper;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
import io.InputReader;
|
||||
import io.OutputWriter;
|
||||
import misc.SimpleSavingChelperSolution;
|
||||
import misc.Stuff;
|
||||
|
||||
|
||||
public class TaskB extends SimpleSavingChelperSolution {
|
||||
|
||||
static class Fraction implements Comparable<Fraction> {
|
||||
public final long a;
|
||||
public final long b;
|
||||
|
||||
public Fraction(long a, long b) {
|
||||
if (b < 0) {
|
||||
a *= -1;
|
||||
b *= -1;
|
||||
}
|
||||
|
||||
if (b == 0) {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
|
||||
if (a == 0) {
|
||||
this.a = 0;
|
||||
this.b = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
long g = Math.abs(Stuff.gcd(a, b));
|
||||
this.a = a / g;
|
||||
this.b = b / g;
|
||||
}
|
||||
|
||||
public Fraction add(Fraction o) {
|
||||
return new Fraction(a * o.b + o.a * b, b * o.b);
|
||||
}
|
||||
|
||||
public Fraction negate() {
|
||||
return new Fraction(-a, b);
|
||||
}
|
||||
|
||||
public Fraction subtract(Fraction o) {
|
||||
return add(o.negate());
|
||||
}
|
||||
|
||||
public Fraction multiply(Fraction o) {
|
||||
return new Fraction(a * o.a, b * o.b);
|
||||
}
|
||||
|
||||
public Fraction inverse() {
|
||||
return new Fraction(b, a);
|
||||
}
|
||||
|
||||
public Fraction divide(Fraction o) {
|
||||
return multiply(o.inverse());
|
||||
}
|
||||
|
||||
public boolean isDivisibleBy(Fraction o) {
|
||||
Fraction d = divide(o);
|
||||
return d.b == 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Fraction o) {
|
||||
Fraction d = subtract(o);
|
||||
return Long.compare(d.a, 0);
|
||||
}
|
||||
|
||||
public static Fraction gcd(Fraction a, Fraction b) {
|
||||
if (a.compareTo(b) < 0) {
|
||||
Fraction t = a;
|
||||
a = b;
|
||||
b = t;
|
||||
}
|
||||
|
||||
if (a.isDivisibleBy(b)) {
|
||||
return b;
|
||||
}
|
||||
|
||||
return gcd(a.subtract(b), b);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return a + " " + b;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Fraction fraction = (Fraction) o;
|
||||
|
||||
if (a != fraction.a) return false;
|
||||
return b == fraction.b;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = (int) (a ^ a >>> 32);
|
||||
result = 31 * result + (int) (b ^ b >>> 32);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
public void solve(int testNumber, InputReader in, OutputWriter out) {
|
||||
wrapSolve(testNumber, in, out);
|
||||
}
|
||||
|
||||
public static BigInteger gcd(BigInteger a, BigInteger b) {
|
||||
if (a.equals(BigInteger.ZERO) || b.equals(BigInteger.ZERO)) {
|
||||
return a.max(b);
|
||||
}
|
||||
|
||||
while (!a.mod(b).equals(BigInteger.ZERO)) {
|
||||
a = a.mod(b);
|
||||
BigInteger t = a;
|
||||
a = b;
|
||||
b = t;
|
||||
}
|
||||
|
||||
return b;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void solve(int testNumber) {
|
||||
long M = 100;
|
||||
|
||||
// System.out.println(new Fraction(((long) (Math.random() * M)), ((long) (Math.random() * M))));
|
||||
// System.out.println(new Fraction(((long) (Math.random() * M)), ((long) (Math.random() * M))));
|
||||
// System.out.println(new Fraction(((long) (Math.random() * M)), ((long) (Math.random() * M))));
|
||||
// System.out.println(new Fraction(((long) (Math.random() * M)), ((long) (Math.random() * M))));
|
||||
// System.out.println(new Fraction(((long) (Math.random() * M)), ((long) (Math.random() * M))));
|
||||
// System.out.println(new Fraction(((long) (Math.random() * M)), ((long) (Math.random() * M))));
|
||||
// System.out.println(new Fraction(((long) (Math.random() * M)), ((long) (Math.random() * M))));
|
||||
// System.out.println(new Fraction(((long) (Math.random() * M)), ((long) (Math.random() * M))));
|
||||
|
||||
|
||||
Fraction a = new Fraction(in.nextInt(), in.nextInt());
|
||||
Fraction b = new Fraction(in.nextInt(), in.nextInt());
|
||||
|
||||
// Fraction g = Fraction.gcd(a, b);
|
||||
//
|
||||
// Fraction ans1 = a.multiply(b).divide(g);
|
||||
// out.println(ans1);
|
||||
|
||||
BigInteger aa = BigInteger.valueOf(a.a);
|
||||
BigInteger ab = BigInteger.valueOf(a.b);
|
||||
BigInteger ba = BigInteger.valueOf(b.a);
|
||||
BigInteger bb = BigInteger.valueOf(b.b);
|
||||
|
||||
BigInteger bg = gcd(ab, bb);
|
||||
BigInteger b1 = ab.multiply(bb).divide(bg);
|
||||
BigInteger a1 = b1.divide(ab).multiply(aa);
|
||||
BigInteger a2 = b1.divide(bb).multiply(ba);
|
||||
BigInteger ag = gcd(a1, a2);
|
||||
BigInteger lcm = a1.multiply(a2).divide(ag);
|
||||
|
||||
BigInteger g = gcd(lcm, b1);
|
||||
BigInteger ar = lcm.divide(g);
|
||||
BigInteger br = b1.divide(g);
|
||||
|
||||
out.println(ar + " " + br);
|
||||
|
||||
// if (!ans1.equals(ans2)) {
|
||||
// throw new RuntimeException();
|
||||
// }
|
||||
}
|
||||
}
|
56
archive/2017.04/2017.04.16 - unsorted/TaskB.task
Normal file
56
archive/2017.04/2017.04.16 - unsorted/TaskB.task
Normal file
@@ -0,0 +1,56 @@
|
||||
5 TaskB
|
||||
12 MULTI_NUMBER
|
||||
8 STANDARD
|
||||
9 input.txt
|
||||
8 STANDARD
|
||||
10 output.txt
|
||||
4
|
||||
0
|
||||
21 2
|
||||
9 5 12 5
|
||||
1 10 3 100
|
||||
9 36 5
|
||||
3 10
|
||||
1
|
||||
1
|
||||
14 1
|
||||
1 100
|
||||
1 1000
|
||||
-1
|
||||
1
|
||||
2
|
||||
125 3
|
||||
38476513 2037278746
|
||||
553939120 1479775151
|
||||
78983548 165294827
|
||||
1855049790 771139337
|
||||
1386417042 1807485049
|
||||
492281701 1685084932
|
||||
-1
|
||||
1
|
||||
3
|
||||
45 4
|
||||
7 5
|
||||
13 16
|
||||
64 13
|
||||
86 13
|
||||
9 14
|
||||
2 13
|
||||
16 11
|
||||
52 75
|
||||
-1
|
||||
1
|
||||
11 src/chelper
|
||||
16 -Xmx256m -Xss64m
|
||||
4 Main
|
||||
13 chelper.TaskB
|
||||
39 net.egork.chelper.checkers.TokenChecker
|
||||
0
|
||||
0
|
||||
10 2017.04.16
|
||||
0
|
||||
1
|
||||
14 io.InputReader
|
||||
15 io.OutputWriter
|
||||
0
|
||||
0
|
124
archive/2017.04/2017.04.30 - unsorted/TaskA.java
Normal file
124
archive/2017.04/2017.04.30 - unsorted/TaskA.java
Normal file
@@ -0,0 +1,124 @@
|
||||
package chelper;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import io.InputReader;
|
||||
import io.OutputWriter;
|
||||
import misc.GCJSolution;
|
||||
import misc.SimpleSavingChelperSolution;
|
||||
|
||||
|
||||
public class TaskA extends GCJSolution {
|
||||
|
||||
public void solve(int testNumber, InputReader in, OutputWriter out) {
|
||||
wrapSolve(testNumber, in, out);
|
||||
}
|
||||
|
||||
class Pancake implements Comparable<Pancake> {
|
||||
final int r;
|
||||
final int h;
|
||||
|
||||
public Pancake(int r, int h) {
|
||||
this.r = r;
|
||||
this.h = h;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Pancake o) {
|
||||
int t = -Integer.compare(r, o.r);
|
||||
if (t != 0) {
|
||||
return t;
|
||||
}
|
||||
return Integer.compare(h, o.h);
|
||||
}
|
||||
|
||||
double sides() {
|
||||
return 2 * Math.PI * r * h;
|
||||
}
|
||||
|
||||
double area() {
|
||||
return Math.PI * r * r;
|
||||
}
|
||||
|
||||
double total() {
|
||||
return sides() + area();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Pancake{" +
|
||||
"r=" + r +
|
||||
", h=" + h +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void solve(int testNumber) {
|
||||
int n = in.nextInt();
|
||||
int k = in.nextInt();
|
||||
|
||||
List<Pancake> pancakes = new ArrayList<>();
|
||||
|
||||
Random random = new Random();
|
||||
|
||||
for (int i = 0; i < n; i++) {
|
||||
pancakes.add(new Pancake(in.nextInt(), in.nextInt()));
|
||||
|
||||
// pancakes.add(new Pancake(random.nextInt(100000), random.nextInt(100000)));
|
||||
}
|
||||
|
||||
Collections.sort(pancakes);
|
||||
|
||||
double[][] dp = new double[n + 1][n];
|
||||
|
||||
for (int i = 0; i < n; i++) {
|
||||
for (int j = 0; j < n; j++) {
|
||||
dp[i][j] = -1;
|
||||
}
|
||||
}
|
||||
|
||||
// for (Pancake pancake : pancakes) {
|
||||
// System.out.println(pancake);
|
||||
// }
|
||||
|
||||
Arrays.fill(dp[0], 0);
|
||||
|
||||
for (int addI = 0; addI < n; addI++) {
|
||||
Pancake add = pancakes.get(addI);
|
||||
|
||||
double addTotal = add.total();
|
||||
double addArea = add.area();
|
||||
|
||||
for (int i = n - 1; i >= 0; i--) {
|
||||
for (int j = 0; j < n; j++) {
|
||||
if (dp[i][j] < 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
double newRes = dp[i][j] + addTotal;
|
||||
if (i != 0) {
|
||||
newRes -= addArea;
|
||||
}
|
||||
|
||||
if (newRes > dp[i + 1][addI]) {
|
||||
// System.out.println("set " + (i + 1) + " " + j + " + " + addI + " = " + newRes);
|
||||
dp[i + 1][addI] = newRes;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
double max = -1;
|
||||
for (int i = 0; i < n; i++) {
|
||||
max = Math.max(max, dp[k][i]);
|
||||
}
|
||||
// System.out.println();
|
||||
|
||||
out.println(max);
|
||||
}
|
||||
}
|
15359
archive/2017.04/2017.04.30 - unsorted/TaskA.task
Normal file
15359
archive/2017.04/2017.04.30 - unsorted/TaskA.task
Normal file
File diff suppressed because it is too large
Load Diff
159
archive/2017.04/2017.04.30 - unsorted/TaskB.java
Normal file
159
archive/2017.04/2017.04.30 - unsorted/TaskB.java
Normal file
@@ -0,0 +1,159 @@
|
||||
package chelper;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import io.InputReader;
|
||||
import io.OutputWriter;
|
||||
import misc.GCJSolution;
|
||||
|
||||
|
||||
public class TaskB extends GCJSolution {
|
||||
|
||||
public void solve(int testNumber, InputReader in, OutputWriter out) {
|
||||
wrapSolve(testNumber, in, out);
|
||||
}
|
||||
|
||||
class Interval implements Comparable<Interval> {
|
||||
int start;
|
||||
int end;
|
||||
int kind;
|
||||
int len;
|
||||
|
||||
public Interval(int start, int end, int kind) {
|
||||
this.start = start;
|
||||
this.end = end;
|
||||
this.kind = kind;
|
||||
len = end - start;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Interval o) {
|
||||
return Integer.compare(start, o.start);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Interval{" +
|
||||
"start=" + start +
|
||||
", end=" + end +
|
||||
", kind=" + kind +
|
||||
", len=" + len +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
int BIG = 1000000;
|
||||
|
||||
int[] makeDp() {
|
||||
int[] dp = new int[721];
|
||||
Arrays.fill(dp, BIG);
|
||||
return dp;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void solve(int testNumber) {
|
||||
System.out.println("Test " + testNumber);
|
||||
System.out.flush();
|
||||
|
||||
List<Interval> intervals = new ArrayList<>();
|
||||
|
||||
int a1 = in.nextInt();
|
||||
int a2 = in.nextInt();
|
||||
|
||||
for (int i = 0; i < a1; i++) {
|
||||
intervals.add(new Interval(in.nextInt(), in.nextInt(), 0));
|
||||
}
|
||||
for (int i = 0; i < a2; i++) {
|
||||
intervals.add(new Interval(in.nextInt(), in.nextInt(), 1));
|
||||
}
|
||||
|
||||
int[] dp = makeDp();
|
||||
int[] newDp;
|
||||
|
||||
dp[0] = 0;
|
||||
|
||||
Collections.sort(intervals);
|
||||
|
||||
intervals.add(new Interval(intervals.get(0).start + 1440, intervals.get(0).end + 1440, intervals.get(0).kind));
|
||||
|
||||
int totalTaken = 0;
|
||||
|
||||
for (int intervalI = 0; intervalI < intervals.size() - 1; intervalI++) {
|
||||
Interval x = intervals.get(intervalI);
|
||||
int k = x.kind;
|
||||
|
||||
{
|
||||
newDp = makeDp();
|
||||
for (int aTaken = 0; aTaken <= 720; aTaken++) {
|
||||
int bTaken = totalTaken - aTaken;
|
||||
|
||||
if (bTaken < 0 || dp[aTaken] == BIG) {
|
||||
continue;
|
||||
}
|
||||
|
||||
int aTaken2 = aTaken + (k == 0 ? x.len : 0);
|
||||
int bTaken2 = bTaken + (k == 1 ? x.len : 0);
|
||||
|
||||
if (aTaken2 > 720 || bTaken2 > 720) {
|
||||
continue;
|
||||
}
|
||||
|
||||
newDp[aTaken2] = dp[aTaken];
|
||||
}
|
||||
totalTaken += x.len;
|
||||
dp = newDp;
|
||||
}
|
||||
|
||||
Interval next = intervals.get(intervalI + 1);
|
||||
int k2 = next.kind;
|
||||
int dist = next.start - x.end;
|
||||
|
||||
{
|
||||
newDp = makeDp();
|
||||
for (int aTaken = 0; aTaken <= 720; aTaken++) {
|
||||
int bTaken = totalTaken - aTaken;
|
||||
if (bTaken < 0 || dp[aTaken] == BIG) {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (int aAdd = 0; aAdd <= dist; aAdd++) {
|
||||
int bAdd = dist - aAdd;
|
||||
|
||||
int penalty = 0;
|
||||
|
||||
if (k != k2) {
|
||||
penalty = 1;
|
||||
} else {
|
||||
if (k == 0 && bAdd > 0) {
|
||||
penalty = 2;
|
||||
}
|
||||
if (k == 1 && aAdd > 0) {
|
||||
penalty = 2;
|
||||
}
|
||||
}
|
||||
|
||||
int aTaken2 = aTaken + aAdd;
|
||||
int bTaken2 = bTaken + bAdd;
|
||||
|
||||
if (aTaken2 > 720 || bTaken2 > 720) {
|
||||
continue;
|
||||
}
|
||||
|
||||
newDp[aTaken2] = Math.min(newDp[aTaken2], dp[aTaken] + penalty);
|
||||
}
|
||||
}
|
||||
totalTaken += dist;
|
||||
dp = newDp;
|
||||
}
|
||||
}
|
||||
|
||||
int ans = BIG;
|
||||
for (int i = 0; i <= 720; i++) {
|
||||
ans = Math.min(ans, dp[i]);
|
||||
}
|
||||
out.println(ans);
|
||||
}
|
||||
}
|
8834
archive/2017.04/2017.04.30 - unsorted/TaskB.task
Normal file
8834
archive/2017.04/2017.04.30 - unsorted/TaskB.task
Normal file
File diff suppressed because it is too large
Load Diff
58
archive/2017.04/2017.04.30 - unsorted/TaskC.java
Normal file
58
archive/2017.04/2017.04.30 - unsorted/TaskC.java
Normal file
@@ -0,0 +1,58 @@
|
||||
package chelper;
|
||||
|
||||
import io.InputReader;
|
||||
import io.OutputWriter;
|
||||
import misc.GCJSolution;
|
||||
import misc.SimpleSavingChelperSolution;
|
||||
|
||||
|
||||
public class TaskC extends GCJSolution {
|
||||
|
||||
public void solve(int testNumber, InputReader in, OutputWriter out) {
|
||||
wrapSolve(testNumber, in, out);
|
||||
}
|
||||
|
||||
double eps = 1e-9;
|
||||
|
||||
@Override
|
||||
public void solve(int testNumber) {
|
||||
int n = in.nextInt();
|
||||
int k = in.nextInt();
|
||||
|
||||
double u = in.nextDouble();
|
||||
double[] a = in.nextDoubleArray(n);
|
||||
|
||||
double min = 1.0;
|
||||
for (double v : a) {
|
||||
min = Math.min(v, min);
|
||||
}
|
||||
|
||||
double l = 0.0;
|
||||
double r = 1.1;
|
||||
double goodAns = 0.0;
|
||||
|
||||
while (r - l > eps) {
|
||||
double m = (r + l) / 2;
|
||||
double ma = Math.min(m, 1.0);
|
||||
|
||||
double uLeft = u;
|
||||
double ans = 1;
|
||||
|
||||
for (double v : a) {
|
||||
double uNeed = Math.max(0, ma - v);
|
||||
uLeft -= uNeed;
|
||||
// ans *= ma;
|
||||
ans *= Math.max(ma, v);
|
||||
}
|
||||
|
||||
if (uLeft >= 0) {
|
||||
l = m;
|
||||
goodAns = Math.max(goodAns, ans);
|
||||
} else {
|
||||
r = m;
|
||||
}
|
||||
}
|
||||
|
||||
out.println(goodAns);
|
||||
}
|
||||
}
|
1280
archive/2017.04/2017.04.30 - unsorted/TaskC.task
Normal file
1280
archive/2017.04/2017.04.30 - unsorted/TaskC.task
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user