Submission #125748


Source Code Expand

n = gets.to_i
x = 0
n.times do |i|
    x = x + (i+1)*10000
end
puts x/n

Submission Info

Submission Time
Task A - AtCoder社の給料
User chigichan24
Language C++ (G++ 4.6.4)
Score 0
Code Size 76 Byte
Status CE

Compile Error

./Main.cpp:1:1: error: ‘n’ does not name a type