This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class TaskAcmpFast { | |
| int n; | |
| int m; | |
| int k; | |
| boolean[] used; | |
| String[] tickets; | |
| long[] wins; | |
| public void solve(int testNumber, InputReader in, PrintWriter out) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.OutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.PrintWriter; | |
| import java.util.InputMismatchException; | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.io.InputStream; | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public ArrayDeque<PairInt> findPoints(PairInt[] points) { | |
| ArrayDeque<PairInt> result = new ArrayDeque<>(); | |
| int n = points.length; | |
| int val, j; | |
| int leftBorder, rightBorder; | |
| leftBorder = Integer.MAX_VALUE; | |
| rightBorder = Integer.MIN_VALUE; | |
| Arrays.sort(points, new Comparator<PairInt>() { | |
| @Override | |
| public int compare(PairInt o1, PairInt o2) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.InputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.OutputStream; | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.io.InputStream; | |
| import java.io.BufferedReader; | |
| import java.util.Collections; | |
| import java.io.InputStreamReader; | |
| import java.io.IOException; |
NewerOlder