add remainders division by 7


Submit solution

Points: 20
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
Java 19, Java 8

題目說明

從鍵盤輸入5個正整數,找其中除7餘數為1的數。請將這些符合條件的數加總後輸出。

輸入

從鍵盤輸入5個正整數。

輸出

請由螢幕輸出除7餘數為1的數之加總值。

sample input & output

輸入 輸出
樣本1 8 19 21 9 29 37
樣本2 15 1 20 91 7 16

Comments

There are no comments at the moment.