Hos' Xmas Contest

Hos' Xmas Contest 2011 H "output"

問題:http://atcoder.jp/problem/detail/139部分点だけもらえるコード. import java.math.BigInteger; import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String line = s.nextLine…

Hos' Xmas Contest 2011 E "accepted"

問題:http://atcoder.jp/problem/detail/136 public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt(), l = s.nextInt(), c = 0; for(int i = 0; i < n; ++i){ if(s.next().equals("accept…

Hos' Xmas Contest 2011 B "shortest path"

問題:http://atcoder.jp/problem/detail/133 import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt(), m = s.nextInt(); long d = s.nextInt(); int st = s.nextInt(…

Hos' Xmas Contest 2011

詳細:http://hos.ac/contest/xmas2011/ 方針はとりあえず全部問題読んでみる. A読む 組み合わせかー あれ?問題の中の問題か. B読む 最短経路探索か.簡単そうなので早めにやる. C読む わからん. なんか去年のHみたいな問題あると影響出そうな入力. D…

Hos' Xmas Contest C "Connect The Decoration"

問題:http://judge.imoz.jp/page.php?page=view_problem&pid=63&cid=12解説が上がってたので読みながらコードを書いてみた. とりあえずクラスカル法を使って部分点(N import java.util.*; // C "Connect The Decoration" public class Main { public stat…

Hos' Xmas Contest 2010 B "Simple Parsing"

問題:http://judge.imoz.jp/page.php?page=view_problem&pid=62&cid=12昼の部に参加.いろいろとひどいコード. import java.util.Scanner; // B "Simple Parsing" public class Main { public static void main(String[] args) { Scanner s = new Scanner(…

Hos' Xmas Contest 2010 H "Read Me"

問題:http://judge.imoz.jp/page.php?page=view_problem&pid=68&cid=12昼の部に参加. import java.util.*; // H "Read Me" public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); for (;;) { String str = s…

Hos' Xmas Contest 2010

詳細:http://hos.gozaru.jp/contest/xmas2010/昼の部に参加. A読む 開区間にある倍数の数を調整すれば良いってこと? わかんね とりあえず全部読むか B読む 構文解析? SPOJのONPとかに似てるなー なんか入出力が独特というか 問題の入力の範囲をメモし始…