Submission #122044


Source Code Expand

Copy
#include <iostream>
#include <cstdio>
#include <string>
#include <vector>
using namespace std;

int main() {
  double ans = 0;
  int n;
  cin >> n;

  double sum = 0;
  for (int i = 1; i <= n; i++) {
    sum += 10000 * i;
  }
  ans = sum / n;

  printf ("%g \n", ans);
}

Submission Info

Submission Time
Task A - AtCoder社の給料
User warm4C0
Language C++ (G++ 4.6.4)
Score 100
Code Size 290 Byte
Status
Exec Time 22 ms
Memory 932 KB

Test Cases

Set Name Score / Max Score Test Cases
All 100 / 100 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 21 ms 764 KB
00_sample_02.txt 21 ms 760 KB
test_100.txt 20 ms 932 KB
test_14.txt 21 ms 680 KB
test_29.txt 21 ms 808 KB
test_4.txt 21 ms 800 KB
test_42.txt 21 ms 804 KB
test_48.txt 22 ms 680 KB
test_54.txt 21 ms 808 KB
test_59.txt 21 ms 804 KB
test_71.txt 21 ms 804 KB
test_72.txt 21 ms 808 KB
test_84.txt 22 ms 676 KB
test_96.txt 21 ms 932 KB