# Explaination for SEAND2

can anybody tell me that what is:-

(A (mod b[i]))

i don’t understand what mod is it? please explain.

1 Like

a%b means subracting b as many times from a until a becomes less than b.
In other words a%b gives you the remainder when a is divided by b.
Example - 10%3 is equal 1. 10 divided by 3 gives you 1 as the remainder.

2 Likes

According the problem, our goal is the minimize the sum of the remainders. So can you explain why the answer for the second test case is 754312 which results in remainder of 2. If the answer were 754321, then the remainder would be 1 which is smaller.

this is so because the output provided is not the best solution you can have many solutions for a single test case.

1 Like

@sampritipanda Even i have that doubt.
@bhagatdivesh12 can you upvote the answer?

@abeyaar i had done to do so but it is saying that i don’t have enough reputation to do so.

1 Like
{"ft_lang_label":"__label__en","ft_lang_prob":0.9481273,"math_prob":0.90605396,"size":1853,"snap":"2023-14-2023-23","text_gpt3_token_len":466,"char_repetition_ratio":0.11195241,"word_repetition_ratio":0.09356725,"special_character_ratio":0.26767403,"punctuation_ratio":0.10723192,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9965321,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-05-29T11:44:38Z\",\"WARC-Record-ID\":\"<urn:uuid:faee2732-b926-4b4a-bcf3-5309727ac1e7>\",\"Content-Length\":\"37653\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:371efc85-e3e9-4953-8a03-909db9b22547>\",\"WARC-Concurrent-To\":\"<urn:uuid:3bdfe8df-b60f-49cf-9538-ed16503fbb5d>\",\"WARC-IP-Address\":\"44.215.32.150\",\"WARC-Target-URI\":\"https://discusstest.codechef.com/t/explaination-for-seand2/9024\",\"WARC-Payload-Digest\":\"sha1:D5A53JZ2Q2NS3YUTCKXXAXACHB7HFGNB\",\"WARC-Block-Digest\":\"sha1:N2TP3DUZ6OOAIXUQFY46YFA3D4LV7HWF\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224644855.6_warc_CC-MAIN-20230529105815-20230529135815-00032.warc.gz\"}"}