This repository was archived by the owner on Feb 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +115
-0
lines changed Expand file tree Collapse file tree 8 files changed +115
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <classpath >
3
+ <classpathentry kind =" src" path =" src" />
4
+ <classpathentry exported =" true" kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER" />
5
+ <classpathentry kind =" output" path =" bin" />
6
+ </classpath >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <projectDescription >
3
+ <name >Java</name >
4
+ <comment ></comment >
5
+ <projects >
6
+ </projects >
7
+ <buildSpec >
8
+ <buildCommand >
9
+ <name >org.eclipse.jdt.core.javabuilder</name >
10
+ <arguments >
11
+ </arguments >
12
+ </buildCommand >
13
+ </buildSpec >
14
+ <natures >
15
+ <nature >org.eclipse.jdt.core.javanature</nature >
16
+ </natures >
17
+ </projectDescription >
Original file line number Diff line number Diff line change 1
1
# Java
2
+ <<<<<<< HEAD
2
3
DON'T use download
3
4
USE RELEASES
4
5
Some files belong to usaco and I do not own them. Also this is my code. Do not use without permission on usaco website!!!!!!!!!!
6
+ =======
7
+ Useful library for usaco and other purposes.
8
+ . Use releases when possible otherwise download usacotools.java.
9
+ # Release dates and more
10
+ Find release dates at https://javaarchive.github.io/Java/ . Moved to https://github.com/javaarchive/Java/wiki
11
+ >>>>>>> master
Original file line number Diff line number Diff line change
1
+ theme : jekyll-theme-cayman
Original file line number Diff line number Diff line change
1
+ import java .io .*;
2
+ import java .security .MessageDigest ;
3
+ import java .security .*;
4
+ public class compilestandard extends usacotools {
5
+ public static String sha256 (String input ) throws NoSuchAlgorithmException {
6
+ MessageDigest mDigest = MessageDigest .getInstance ("SHA-256" );
7
+ byte [] result = mDigest .digest (input .getBytes ());
8
+ StringBuffer sb = new StringBuffer ();
9
+ for (int i = 0 ; i < result .length ; i ++) {
10
+ sb .append (Integer .toString ((result [i ] & 0xff ) + 0x100 , 16 ).substring (1 ));
11
+ }
12
+
13
+ return sb .toString ();
14
+ }
15
+ public static void main (String [] args ) throws IOException {
16
+ // TODO Auto-generated method stub
17
+ BufferedReader f ;
18
+ if (args .length ==1 ) {
19
+ if (args [0 ].equals ("eclipse" )) {
20
+ f =mreader ("src/usacotools.java" );
21
+ }else {
22
+ f =mreader ("usacotools.java" );
23
+ }
24
+
25
+ }else {
26
+ f =mreader ("usacotools.java" );
27
+ }
28
+
29
+ print ("build" );
30
+
31
+ String st ;
32
+ String full ="" ;
33
+
34
+ while ((st = f .readLine ()) != null ) {
35
+ full =full +st +"\n " ;
36
+ }
37
+ String text =full .replace ("if(!(lock)) {return null;}" , "" );
38
+ text =text .replace ("public abstract class usacotools" ,"public abstract class utools" );
39
+ print (text );
40
+ PrintWriter pw =mwriter ("utools.java" );
41
+ if (args [0 ].equals ("eclipse" )) {
42
+ pw =mwriter ("src/utools.java" );
43
+ }else {
44
+
45
+ }
46
+ pw .println (text );
47
+ pw .close ();
48
+ print ("utools.java is the one you should copy into your code but usacotools is the one you should extend" );
49
+ try {
50
+ print ("utools.java SHA256: " +sha256 (text ));
51
+ print ("usacotools.java SHA256: " +sha256 (full ));
52
+ }catch (Exception e ) {
53
+ e .printStackTrace ();
54
+ }
55
+
56
+ }
57
+ }
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+
3
+ < html lang ="en ">
4
+
5
+ < head >
6
+
7
+ < meta charset ="utf-8 " />
8
+
9
+ < meta http-equiv ="x-ua-compatible " content ="ie=edge, chrome=1 " />
10
+
11
+ < title > Code Speed</ title >
12
+
13
+ < link rel ="stylesheet " href ="" />
14
+ < link rel ="stylesheet " href ="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css " integrity ="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO " crossorigin ="anonymous ">
15
+ </ head >
16
+
17
+ < body >
18
+
19
+ < h1 > Which runs faster on java</ h1 >
20
+ < noscript > Javascript disabled? Hopefully everything works alright!</ noscript >
21
+ < script >
22
+
23
+ </ script >
24
+
25
+ </ body >
26
+
27
+ </ html >
You can’t perform that action at this time.
0 commit comments