Submission #451954


Source Code Expand

Copy
x,y,k=$<.read.split.map &:to_i;p x+y-(k-y).abs

Submission Info

Submission Time
Task A - コインの反転
User mugenen
Language Ruby (2.1.5p273)
Score 100
Code Size 46 Byte
Status
Exec Time 60 ms
Memory 5000 KB

Compile Error

./Main.rb:1: warning: `&' interpreted as argument prefix

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt, sample_03.txt
All 100 / 100 sample_01.txt, sample_02.txt, sample_03.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask1_16.txt, subtask1_17.txt, subtask1_18.txt, subtask1_19.txt, subtask1_20.txt, subtask1_21.txt, subtask1_22.txt, subtask1_23.txt, subtask1_24.txt, subtask1_25.txt, subtask1_26.txt, subtask1_27.txt, subtask1_28.txt, subtask1_29.txt, subtask1_30.txt, subtask1_31.txt, subtask1_32.txt
Case Name Status Exec Time Memory
sample_01.txt 57 ms 4876 KB
sample_02.txt 53 ms 4836 KB
sample_03.txt 54 ms 4844 KB
subtask1_01.txt 55 ms 4836 KB
subtask1_02.txt 56 ms 4844 KB
subtask1_03.txt 56 ms 4840 KB
subtask1_04.txt 56 ms 4836 KB
subtask1_05.txt 57 ms 4836 KB
subtask1_06.txt 57 ms 4836 KB
subtask1_07.txt 57 ms 4836 KB
subtask1_08.txt 57 ms 4840 KB
subtask1_09.txt 56 ms 4840 KB
subtask1_10.txt 57 ms 4880 KB
subtask1_11.txt 56 ms 4840 KB
subtask1_12.txt 57 ms 4824 KB
subtask1_13.txt 55 ms 4844 KB
subtask1_14.txt 53 ms 4844 KB
subtask1_15.txt 59 ms 4840 KB
subtask1_16.txt 58 ms 4844 KB
subtask1_17.txt 60 ms 4840 KB
subtask1_18.txt 58 ms 5000 KB
subtask1_19.txt 55 ms 4840 KB
subtask1_20.txt 58 ms 4844 KB
subtask1_21.txt 58 ms 4840 KB
subtask1_22.txt 59 ms 4844 KB
subtask1_23.txt 58 ms 4992 KB
subtask1_24.txt 57 ms 4836 KB
subtask1_25.txt 57 ms 4836 KB
subtask1_26.txt 57 ms 4840 KB
subtask1_27.txt 57 ms 4840 KB
subtask1_28.txt 58 ms 4840 KB
subtask1_29.txt 58 ms 4824 KB
subtask1_30.txt 56 ms 4792 KB
subtask1_31.txt 57 ms 4836 KB
subtask1_32.txt 56 ms 4844 KB