Submission #1768615


Source Code Expand

X = gets.to_i
sum = 0
bs = [*1..X].map{ |t| sum += t }
p bs.bsearch_index{ |s| X <= s } + 1

Submission Info

Submission Time
Task C - Go Home
User universato
Language Ruby (2.3.3)
Score 0
Code Size 96 Byte
Status TLE
Exec Time 2131 ms
Memory 450044 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 3
AC × 4
TLE × 14
Set Name Test Cases
Sample 0_000.txt, 0_001.txt, 0_002.txt
All 0_000.txt, 0_001.txt, 0_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt, 1_008.txt, 1_009.txt, 1_010.txt, 1_011.txt, 1_012.txt, 1_013.txt, 1_014.txt, 1_015.txt, 1_016.txt, 1_017.txt
Case Name Status Exec Time Memory
0_000.txt AC 8 ms 1788 KB
0_001.txt AC 7 ms 1788 KB
0_002.txt AC 7 ms 1788 KB
1_003.txt TLE 2129 ms 448636 KB
1_004.txt TLE 2131 ms 448380 KB
1_005.txt AC 7 ms 1788 KB
1_006.txt TLE 2130 ms 448636 KB
1_007.txt TLE 2129 ms 448636 KB
1_008.txt TLE 2128 ms 449276 KB
1_009.txt TLE 2128 ms 449532 KB
1_010.txt TLE 2126 ms 448380 KB
1_011.txt TLE 2128 ms 449660 KB
1_012.txt TLE 2128 ms 448508 KB
1_013.txt TLE 2127 ms 449916 KB
1_014.txt TLE 2128 ms 449532 KB
1_015.txt TLE 2128 ms 449660 KB
1_016.txt TLE 2128 ms 450044 KB
1_017.txt TLE 2129 ms 449532 KB