Submission #2878101


Source Code Expand

Copy
N = gets.to_i
as = gets.split.map(&:to_i)
puts as.inject(:+) - N

Submission Info

Submission Time
Task C - Modulo Summation
User betrue12
Language Ruby (2.3.3)
Score 300
Code Size 66 Byte
Status
Exec Time 8 ms
Memory 1788 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01, sample_02, sample_03
All 300 / 300 1_small_rand_0, 1_small_rand_1, 1_small_rand_2, 2_rand_0, 2_rand_1, 2_rand_2, 3_max_0, 3_max_1, 3_max_2, 4_prime_0, 4_prime_1, 4_prime_2, 5_hand_0, 5_hand_1, 5_hand_2, sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
1_small_rand_0 7 ms 1788 KB
1_small_rand_1 7 ms 1788 KB
1_small_rand_2 7 ms 1788 KB
2_rand_0 7 ms 1788 KB
2_rand_1 7 ms 1788 KB
2_rand_2 7 ms 1788 KB
3_max_0 8 ms 1788 KB
3_max_1 8 ms 1788 KB
3_max_2 8 ms 1788 KB
4_prime_0 8 ms 1788 KB
4_prime_1 8 ms 1788 KB
4_prime_2 8 ms 1788 KB
5_hand_0 8 ms 1788 KB
5_hand_1 8 ms 1788 KB
5_hand_2 8 ms 1788 KB
sample_01 7 ms 1788 KB
sample_02 7 ms 1788 KB
sample_03 7 ms 1788 KB