OddAddMod


Submit solution

Points: 10
Time limit: 2.0s
Memory limit: 64M

Authors:
Problem type
Allowed languages
Java 19, Java 8

題目說明

輸入5位數,請輸出奇數位相加後除7之餘數 例如: 輸入12345,則取1+3+5加總得9,9除7之餘數為2,因此輸出2

輸入

由鍵盤輸入一整數 (五位數)

輸出

奇數位相加除7之餘數

sample input & output

輸入 輸出
DataSet1 12345 2
DataSet2 13579 1
DataSet3 00001 1

Comments

There are no comments at the moment.