NOIP2015年普級組試題 金幣

輸入樣例1 6 輸出樣例1 14 輸入樣例2 1000 輸出樣例2 29820 數據說明 對於100%的數據,0<K<10,001。 思路 有點水,不說了,直接看代碼吧。 代碼 #include<cstdio> using namespace std; int main() { bool t=0;//初始化 int k,sum=0,a=0,b=0;//初始化 scanf("%d",&k);/
相關文章
相關標籤/搜索