2011-12-25から1日間の記事一覧

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…