AtCoder Beginner Contest 003

Submission #1691735

Source codeソースコード

N = int(input())

#  解法1
salary = 0
for i in range(1,N+1):
    salary += i
salary = int(salary*10000/N)
print(salary)

#  解法2
#  salary2 = int(sum([i+1 for i in range(N)])*10000/N)
#  print(salary2)

Submission

Task問題 A - AtCoder社の給料
User nameユーザ名 csdobu
Created time投稿日時
Language言語 Python3 (3.4.3)
Status状態 AC
Score得点 100
Source lengthソースコード長 217 Byte
File nameファイル名
Exec time実行時間 17 ms
Memory usageメモリ使用量 2940 KB

Test case

Set

Set name Score得点 / Max score 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

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
00_sample_01.txt AC 17 ms 2940 KB
00_sample_02.txt AC 16 ms 2940 KB
test_100.txt AC 17 ms 2940 KB
test_14.txt AC 17 ms 2940 KB
test_29.txt AC 16 ms 2940 KB
test_4.txt AC 16 ms 2940 KB
test_42.txt AC 16 ms 2940 KB
test_48.txt AC 16 ms 2940 KB
test_54.txt AC 16 ms 2940 KB
test_59.txt AC 16 ms 2940 KB
test_71.txt AC 16 ms 2940 KB
test_72.txt AC 16 ms 2940 KB
test_84.txt AC 17 ms 2940 KB
test_96.txt AC 17 ms 2940 KB