gecko655(https://github.com/gecko655)
Last active
August 29, 2015 14:18
-
-
Save jmatsu/6766e50baa579aeee375 to your computer and use it in GitHub Desktop.
Application Developer Festival 2015. Short coding. Java部門1位. 提出物と最短(多分)
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
adf2015 = { | |
:Session => "Short coding", | |
:Language => "Java", | |
:System => "AtCoder", | |
:Limitation => { | |
:jdk => "openjdk-1.7", | |
:class => "Main", | |
:stderr => "Compilation error", | |
:bytes => { | |
:LineBreak => 2, | |
:Alphabet => 1 | |
} | |
}, | |
:Commentary => "http://www.fatdaruma.com/?p=41" | |
}; |
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
class Main{public static void main(String[] a){for(int i=-1;i++<9;)System.out.println("高橋"+"一二三四五六七八九十".charAt(i)+'郎');}} |
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.util.*;class Main{public static void main(String[] x){int n=new Scanner(System.in).nextInt();int j=0;for(int i=1,s;i++<n;j+=i>s?0:1)for(s=2;i%s++>0;);System.out.println(j);}} |
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.util.*;public class Main{public static void main(String[] m){Scanner s=new Scanner(System.in);int n,i=n=s.nextInt();int[] a=new int[n];for(;n-->0;)a[n]=s.nextInt();Arrays.sort(a);System.out.println(a[i/2]);}} |
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
class Main{public static void main(String[] m) throws Exception{String[] x={"□■■■□","■□□□■","□□□□■","□□□□□","■□□□□"};int[][] a={{0,1,1,3,1,1,0},{3,2,2,3,2,2,3},{0,2,2,0,4,4,0},{0,2,2,0,2,2,0},{3,1,1,0,2,2,3},{0,4,4,0,2,2,0},{0,4,4,0,1,1,0},{0,2,2,3,2,2,3},{0,1,1,0,1,1,0},{0,1,1,0,2,2,0}};int[] z=a[System.in.read()-'0'];for(int k:z)System.out.println(x[k]);}} |
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
class Main{public static void main(String[]a){for(int i=-1;i++<9;)System.out.println("高橋"+"一二三四五六七八九十".charAt(i)+'郎');}} |
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
class Main{public static void main(String[]x){int n=new java.util.Scanner(System.in).nextInt();int j=0,i=1,s;for(;i++<n;j+=i>s?0:1)for(s=2;i%s++>0;);System.out.println(j);}} |
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.util.*;class Main{public static void main(String[]m){Scanner s=new Scanner(System.in);int n=s.nextInt(),i=n,a[]=new int[n];for(;n-->0;Arrays.sort(a))a[n]=s.nextInt();System.out.println(a[i/2]);}} |
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
class Main{public static void main(String[]x)throws Throwable{for(int n="嗕矟嵝坝睗坵啵矝啕坕".charAt(System.in.read()-48),i=0,j;++i<8;)for(j=0;j<7;)System.out.print(++j>6?10:(1<<j/3&n>>i*3/5*3)>0?'□':'■');}} | |
// 222Bytes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@gecko655 一番気持ち悪いですね