Submission #122466
Source Code Expand
#!/usr/bin/env python # -*- coding:utf-8 -*- import time import sys import io import re import math #start = time.time() start = time.clock() a = 0 y=10000.0 n = float(raw_input()) for i in range(1,(int(n)+1)): a+=(y*i*(1/n)) print a
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder社の給料 |
User | nyon |
Language | Python (2.7.3) |
Score | 100 |
Code Size | 251 Byte |
Status | AC |
Exec Time | 62 ms |
Memory | 3500 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 | 52 ms | 3488 KB |
00_sample_02.txt | AC | 55 ms | 3388 KB |
test_100.txt | AC | 51 ms | 3312 KB |
test_14.txt | AC | 55 ms | 3492 KB |
test_29.txt | AC | 51 ms | 3496 KB |
test_4.txt | AC | 54 ms | 3500 KB |
test_42.txt | AC | 51 ms | 3488 KB |
test_48.txt | AC | 62 ms | 3484 KB |
test_54.txt | AC | 54 ms | 3496 KB |
test_59.txt | AC | 52 ms | 3500 KB |
test_71.txt | AC | 51 ms | 3316 KB |
test_72.txt | AC | 51 ms | 3488 KB |
test_84.txt | AC | 49 ms | 3316 KB |
test_96.txt | AC | 50 ms | 3496 KB |