Submission #122126
Source Code Expand
Copy
import java.io.InputStreamReader; import java.util.ArrayList; import java.util.LinkedList; import java.util.Scanner; public class Main { static int N; static int M; static int H; static int[][] edges; static int[] D; static class State{ public int area; public double p; public int time; public int h; public State(int area, double p, int time, int h){ this.area = area; this.p = p; this.time = time; this.h = h; } } public Main() { // TODO 自動生成されたコンストラクター・スタブ } /** * @param args */ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ read(); solve(); } private static void solve() { System.out.println((N + 1) * 10000 /2); // // TODO 自動生成されたメソッド・スタブ // LinkedList<State> queue = new LinkedList<State>(); // queue.add(new State(1, 1, 0, H)); // while(true){ // State s = queue.pollFirst(); // ArrayList<Integer> nextList = new ArrayList<Integer>(); // for(int[] edge : edges){ // if(edge[0] == s.area){ // nextList.add(edge[1]); // } // } // double p = s.p / nextList.size(); // for(int next : nextList){ // //queue.add(new State(next,)) // } // } } private static void read(){ Scanner scan = new Scanner(new InputStreamReader(System.in)); N = scan.nextInt(); // N = scan.nextInt(); // M = scan.nextInt(); // H = scan.nextInt(); // // edges = new int[M][2]; // for(int i = 0; i<M; i++){ // edges[M][0] = scan.nextInt(); // edges[M][1] = scan.nextInt(); // } // // D = new int[N]; // for(int i = 0; i<N; i++){ // D[i] = scan.nextInt(); // } // score = new char[9][num]; // for(int i = 0; i<num; i++){ // String line = scan.nextLine(); //// System.err.print(line);// // for(int j = 0; j<9; j++){ // score[j][i] = line.charAt(j); // } // } // } }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder社の給料 |
User | keitaro9ml |
Language | Java (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 2000 Byte |
Status | AC |
Exec Time | 499 ms |
Memory | 23224 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample_01.txt, 00_sample_02.txt, test_100.txt, test_14.txt, test_29.txt, test_4.txt, test_42.txt, test_48.txt, test_54.txt, test_59.txt, test_71.txt, test_72.txt, test_84.txt, test_96.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 499 ms | 23220 KB |
00_sample_02.txt | AC | 431 ms | 23176 KB |
test_100.txt | AC | 456 ms | 23220 KB |
test_14.txt | AC | 480 ms | 23048 KB |
test_29.txt | AC | 466 ms | 23212 KB |
test_4.txt | AC | 438 ms | 23216 KB |
test_42.txt | AC | 453 ms | 23212 KB |
test_48.txt | AC | 448 ms | 23220 KB |
test_54.txt | AC | 428 ms | 23188 KB |
test_59.txt | AC | 469 ms | 23220 KB |
test_71.txt | AC | 454 ms | 23092 KB |
test_72.txt | AC | 448 ms | 23224 KB |
test_84.txt | AC | 462 ms | 23192 KB |
test_96.txt | AC | 459 ms | 23220 KB |