Submission #3241130


Source Code Expand

Copy
A, B, C, S = 4.times.map{gets.to_i}
sum = A+B+C
puts S.between?(sum, sum+3) ? 'Yes' : 'No'

Submission Info

Submission Time
Task A - 配点
User betrue12
Language Ruby (2.3.3)
Score 100
Code Size 92 Byte
Status
Exec Time 7 ms
Memory 1788 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample-01.txt, sample-02.txt, sample-03.txt
All 100 / 100 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, sample-01.txt, sample-02.txt, sample-03.txt
Case Name Status Exec Time Memory
01.txt 7 ms 1788 KB
02.txt 7 ms 1788 KB
03.txt 7 ms 1788 KB
04.txt 7 ms 1788 KB
05.txt 7 ms 1788 KB
06.txt 7 ms 1788 KB
07.txt 7 ms 1788 KB
08.txt 7 ms 1788 KB
09.txt 7 ms 1788 KB
10.txt 7 ms 1788 KB
sample-01.txt 7 ms 1788 KB
sample-02.txt 7 ms 1788 KB
sample-03.txt 7 ms 1788 KB