Submission #6683561


Source Code Expand

Copy
N = gets.to_i
ans = 0
(1..N).each do |i|
    ans += 1 if i.to_s.size % 2 == 1
end
puts ans

Submission Info

Submission Time
Task B - Uneven Numbers
User betrue12
Language Ruby (2.3.3)
Score 200
Code Size 95 Byte
Status AC
Exec Time 28 ms
Memory 1788 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 13
Set Name Test Cases
Sample a01, a02, a03
All a01, a02, a03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13
Case Name Status Exec Time Memory
a01 AC 7 ms 1788 KB
a02 AC 7 ms 1788 KB
a03 AC 28 ms 1788 KB
b04 AC 7 ms 1788 KB
b05 AC 7 ms 1788 KB
b06 AC 7 ms 1788 KB
b07 AC 7 ms 1788 KB
b08 AC 7 ms 1788 KB
b09 AC 8 ms 1788 KB
b10 AC 9 ms 1788 KB
b11 AC 17 ms 1788 KB
b12 AC 28 ms 1788 KB
b13 AC 28 ms 1788 KB