Submission #43093297


Source Code Expand

inputs = gets.chomp.split(' ').map(&:to_i)

pre_input = 0
result = 'Yes'
inputs.each do |i|
  if pre_input > i
    result = 'No'
    break
  end

  if i < 100 || i > 675
    result = 'No'
    break
  end

  if i % 25 > 0
    result = 'No'
    break
  end

  pre_input = i
end

print(result)

Submission Info

Submission Time
Task A - New Scheme
User maureen
Language Ruby (2.7.1)
Score 100
Code Size 315 Byte
Status AC
Exec Time 71 ms
Memory 14340 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 20
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 02_handmade_00.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 67 ms 14124 KiB
00_sample_01.txt AC 65 ms 14276 KiB
00_sample_02.txt AC 65 ms 14156 KiB
01_random_00.txt AC 61 ms 14248 KiB
01_random_01.txt AC 65 ms 14088 KiB
01_random_02.txt AC 65 ms 13976 KiB
01_random_03.txt AC 67 ms 14168 KiB
01_random_04.txt AC 66 ms 14340 KiB
01_random_05.txt AC 69 ms 14220 KiB
01_random_06.txt AC 65 ms 14064 KiB
01_random_07.txt AC 66 ms 14116 KiB
01_random_08.txt AC 66 ms 14084 KiB
01_random_09.txt AC 69 ms 14208 KiB
01_random_10.txt AC 67 ms 14172 KiB
01_random_11.txt AC 64 ms 14232 KiB
01_random_12.txt AC 60 ms 14204 KiB
02_handmade_00.txt AC 71 ms 14224 KiB
02_handmade_01.txt AC 67 ms 13968 KiB
02_handmade_02.txt AC 68 ms 14188 KiB
02_handmade_03.txt AC 62 ms 14040 KiB