D
D
David Koifman2017-09-06 13:15:23
C++ / C#
David Koifman, 2017-09-06 13:15:23

How to compare arrays in C?

I solve one problem there I use arrays: int a[] = {26, 13, 19, 14, 14, 17, 20, 15, 15, 15,18,10,14};
int b[] = {17, 15, 11, 16, 15, 18, 20, 17, 16, 17,12,12}; I need to compare them to display which array is greater or they are equal. I just started learning C. What you need for this is a link to the task: https://acmp.ru/index.asp?main=task&id_task=61

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
longclaps, 2017-09-06
@Davka1900

Look at the condition and examples at your own link:
the winner is determined by the sum of points.
You do not need to compare arrays, but their sums.

N
ns5d, 2017-09-06
@ns5d

https://github.com/ns5d/acmp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question