Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
e57d9ab
Add files via upload
javaarchive Jun 15, 2018
b20e7d6
Add files via upload
javaarchive Jun 24, 2018
d1ed7a1
Add files via upload
javaarchive Jun 24, 2018
69f3073
Add files via upload
javaarchive Jun 24, 2018
ba52039
Add files via upload
javaarchive Jun 24, 2018
c9846bc
Add files via upload
javaarchive Jun 24, 2018
4164694
Update README.md
javaarchive Jun 24, 2018
71945b1
Add files via upload
javaarchive Jul 9, 2018
88d6f53
Add files via upload
javaarchive Jul 22, 2018
0e90eaf
Add files via upload
javaarchive Sep 10, 2018
85a40a2
Kind of Merge branch 'master' into usacocode
javaarchive Sep 10, 2018
2fdbb90
Merge branch 'usacocode' of https://github.com/javaarchive/Java into …
javaarchive Sep 10, 2018
3f3b2e3
Add files via upload
javaarchive Sep 10, 2018
c4e97ca
Update README.md
javaarchive Sep 10, 2018
593ed06
Casework complete!!!!
javaarchive Sep 10, 2018
a7477d7
Add files via upload
javaarchive Oct 1, 2018
24b02c3
Add files via upload
javaarchive Oct 20, 2018
c0c7d18
Copy eclipse project
javaarchive Nov 5, 2018
c165941
Something...
javaarchive Dec 29, 2018
6161330
Some new stuff
javaarchive Jan 15, 2019
088e7ea
Added my other ignore file
javaarchive Jan 15, 2019
16d4991
Reverted to old loop stopping code
javaarchive Jan 15, 2019
8057f57
Removed my test line
javaarchive Jan 15, 2019
2d0cdd3
Large test case output version
javaarchive Jan 15, 2019
7c5a3a2
test case test for case 2 is off
javaarchive Jan 15, 2019
3db5a7c
Testing new calculations
javaarchive Jan 15, 2019
f095e67
New calculation failed
javaarchive Jan 15, 2019
464bfcb
Delete some code...............
javaarchive Jan 15, 2019
5065dbb
Quick edit
javaarchive Jan 15, 2019
bb99832
Added line empty or not logic
javaarchive Jan 15, 2019
430b23d
sort by senority
javaarchive Jan 15, 2019
b8ccaf0
Senority sort
javaarchive Jan 15, 2019
7d601ba
more code...
javaarchive Jan 15, 2019
1dfd4b4
Added more
javaarchive Jan 15, 2019
8e21161
Almost working code
javaarchive Jan 15, 2019
1b934a2
Started debugging
javaarchive Jan 15, 2019
36d0480
Rewrite
javaarchive Jan 15, 2019
7faac51
A WORKING VERSION
javaarchive Jan 15, 2019
a7198ed
Merge branch 'usacocode' of https://github.com/javaarchive/Java into …
javaarchive Jan 15, 2019
63df8b3
Add files via upload
javaarchive Apr 29, 2019
aae93bf
Add files via upload
javaarchive Apr 29, 2019
014816e
Add files via upload
javaarchive Apr 29, 2019
d0eef15
Add files via upload
javaarchive Jun 21, 2019
ac1d366
Add files via upload
javaarchive Jun 22, 2019
a88e159
Add Unmodified version from yesterday
javaarchive Jun 28, 2019
da5933e
Add files via upload
javaarchive Jun 28, 2019
164c572
Add files via upload
javaarchive Jun 28, 2019
ff21b5c
Upload NonWorking edition
javaarchive Jun 28, 2019
251210d
ReOptimize
javaarchive Jun 28, 2019
eb40298
Intersection method change
javaarchive Jun 28, 2019
a133fdd
Add files via upload
javaarchive Jun 28, 2019
95649e4
Fixing some things up
javaarchive Jun 28, 2019
2cdd677
Longing for longs
javaarchive Jun 28, 2019
05bf005
U-S-A-C-O
javaarchive Jun 28, 2019
a876b51
new code
javaarchive Jun 28, 2019
9ce8286
Add files via upload
javaarchive Jun 28, 2019
860e9e3
Working Solution
javaarchive Jun 29, 2019
24311f3
Update README.md
javaarchive Jan 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Kind of Merge branch 'master' into usacocode
  • Loading branch information
javaarchive committed Sep 10, 2018
commit 85a40a2e03b8ea39ac2d7b1ddf215ab476036bfa
6 changes: 6 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Java</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Java
<<<<<<< HEAD
DON'T use download
USE RELEASES
Some files belong to usaco and I do not own them. Also this is my code. Do not use without permission on usaco website!!!!!!!!!!
=======
Useful library for usaco and other purposes.
. Use releases when possible otherwise download usacotools.java.
# Release dates and more
Find release dates at https://javaarchive.github.io/Java/. Moved to https://github.com/javaarchive/Java/wiki
>>>>>>> master
Binary file added compilestandard.class
Binary file not shown.
114 changes: 57 additions & 57 deletions compilestandard.java
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
import java.io.*;
import java.security.MessageDigest;
import java.security.*;
public class compilestandard extends usacotools {
public static String sha256(String input) throws NoSuchAlgorithmException {
MessageDigest mDigest = MessageDigest.getInstance("SHA-256");
byte[] result = mDigest.digest(input.getBytes());
StringBuffer sb = new StringBuffer();
for (int i = 0; i < result.length; i++) {
sb.append(Integer.toString((result[i] & 0xff) + 0x100, 16).substring(1));
}
return sb.toString();
}
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
BufferedReader f;
if(args.length==1) {
if(args[0].equals("eclipse")) {
f=mreader("src/usacotools.java");
}else {
f=mreader("usacotools.java");
}
}else {
f=mreader("usacotools.java");
}
print("build");
String st;
String full="";
while ((st = f.readLine()) != null) {
full=full+st+"\n";
}
String text=full.replace("if(!(lock)) {return null;}", "");
text=text.replace("public abstract class usacotools","public abstract class utools");
print(text);
PrintWriter pw=mwriter("utools.java");
if(args[0].equals("eclipse")) {
pw=mwriter("src/utools.java");
}else {
}
pw.println(text);
pw.close();
print("utools.java is the one you should copy into your code but usacotools is the one you should extend");
try{
print("utools.java SHA256: "+sha256(text));
print("usacotools.java SHA256: "+sha256(full));
}catch(Exception e) {
e.printStackTrace();
}
}
}
import java.io.*;
import java.security.MessageDigest;
import java.security.*;
public class compilestandard extends usacotools {
public static String sha256(String input) throws NoSuchAlgorithmException {
MessageDigest mDigest = MessageDigest.getInstance("SHA-256");
byte[] result = mDigest.digest(input.getBytes());
StringBuffer sb = new StringBuffer();
for (int i = 0; i < result.length; i++) {
sb.append(Integer.toString((result[i] & 0xff) + 0x100, 16).substring(1));
}

return sb.toString();
}
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
BufferedReader f;
if(args.length==1) {
if(args[0].equals("eclipse")) {
f=mreader("src/usacotools.java");
}else {
f=mreader("usacotools.java");
}

}else {
f=mreader("usacotools.java");
}

print("build");

String st;
String full="";

while ((st = f.readLine()) != null) {
full=full+st+"\n";
}
String text=full.replace("if(!(lock)) {return null;}", "");
text=text.replace("public abstract class usacotools","public abstract class utools");
print(text);
PrintWriter pw=mwriter("utools.java");
if(args[0].equals("eclipse")) {
pw=mwriter("src/utools.java");
}else {

}
pw.println(text);
pw.close();
print("utools.java is the one you should copy into your code but usacotools is the one you should extend");
try{
print("utools.java SHA256: "+sha256(text));
print("usacotools.java SHA256: "+sha256(full));
}catch(Exception e) {
e.printStackTrace();
}

}
}
Binary file added debuggableapp.class
Binary file not shown.
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.