一期作業第8題

2021-09-02 19:19:47 字數 833 閱讀 3071

題目:

this problem is also a a + b problem,but it has a little difference,you should determine does (a+b) could be divided with 86.for example ,if (a+b)=98,you should output no for result.

input

each line will contain two integers a and b. process to end of file.

output

for each case, if(a+b)%86=0,output yes in one line,else output no in one line.

sample input

1 18600 8600

sample output

noyes

翻譯版:

這個問題也是乙個a+b問題,但是它有一點不同,你應該確定是否(a+b)可以除以86。例如,如果(a+b)=98,你應該為結果輸出no。

輸入每一行將包含兩個整數a和b程序到檔案結束。

產量對於每一種情況,如果(a+b)% 86=0,則在一行中輸出「是」,否則在一行中輸出no。

樣本輸入

1 18600 8600

樣本輸出不對

#include#includeusing namespace std;

int main()

else

}return 0;

}```

解釋:用了if函式得到不同的結果

新一期ARM作業 六 Nor Flash

目錄描述 解答實現乙個關中斷 開中斷的函式,在測試nor flash時關中斷,測完後開中斷。這樣就不需要注釋掉timer的中斷函式了 第003節 norflash程式設計 擦寫讀,這個程式寫得不好,應該把nor read,nor write,nor erase單獨實現出來,現在都是內嵌在do rea...

大一期末大作業

這個是我大一時候老師布置的期末大作業,功能很繁雜,差不多就是綜合了乙個學期的知識。我把 放上去大家自己看吧,如果有哪個功能不對的,可以去看我其他的練習,差不多都有,或者直接聊我也行。include include define pi 3.14 using namespace std int qumo...

第一期 第八題

a b problem too problem description this problem is also a a b problem,but it has a little difference,you should determine does a b could be divided w...