第一題:很簡單,分離+暴力
#include
#include
#include
using
namespace std;
intmain()
for(
int j=
255;j>=
1;j--)}
}}
第二題,分離,再來點優化。注意pow
返回時是double
形式,所以不能用pow
這位dalao說過。
#include
#include
using
namespace std;
intmain
(int argc,
char
** ar**)
; cin>>s;
for(
int i=
1;i<=
10000
;i++
)else s=
(a*a*a+b*b*b+c*c*c)
%1000;}
else s=
(a*a*a+b*b*b+c*c*c)
%1000
;//優化
if(v[s]
==false
)v[s]
=true
;else
break;}
cout<<
"error"
;return0;
}
第三題最簡單,注意不能垂直組合,並且注意倒立的三角形。
#include
using
namespace std;
intmain()
cout
}
第四題bug最多,我除錯了很久才a。
#include
using
namespace std;
long b[
101]
;bool
sushu
(long x)
return
true;}
long
rrrr
(long l)
bool
bianli
(long x,
int l)
return
true;}
intmain()
if(s<
rrrr
(l))
continue
;//如果有l-1,l-2……位數呢?if(
!(sushu
(s)&&
bianli
(s,www)))
continue
; b[www]
=s; www++;}
sort
(b,b+www)
;//排序
for(
int i=
0;i)cout<<<
' ';
}
注意一定要
freopen
("***.in"
,"r"
,stdin);
freopen
("***.out"
,"w"
,stdout
);
!!!
最後祝你們noip-rp++
記第一屆ACM講堂
今天acm講堂成功舉辦了,我聽了眾位學長的講解,感觸頗多,首先對於那些伴隨著acm實驗室成長的學長們,致以感謝和敬意,為acm實驗室操勞的老師們,表示感激和尊敬,是你們給我們創造了現在這麼好的環境和氛圍,為我們開闢了acm的道路。大三的學長 學姐 們講自己的acm經歷的時候,這種情形讓我想起了高中全...
PHPthinking第一屆DOTA比賽眾籌
感謝大家對phpthinking活動的大力支援,phpthinking夢想和大家一起high,一起吃喝玩樂,一起努力工作,本次眾籌善款將用於phpthinking第一屆dota比賽獎品購買!本次比賽,期待大家的積極參與,同時也希望大家多多支援我們的活動,phpthinking將竭盡全力做好每一次活動...
第一屆 xdef 會議日程
08 40 08 45 武漢大學校領導 致歡迎辭 08 45 08 55 大會主席張煥國教授 致開幕辭 08 55 09 35 資訊保安等級保護工作面臨的形勢與任務 郭啟全 公安部網路安全保衛局總工程師 09 35 10 15 網路安全國際對抗環境下的安全防護能力建設 杜躍進 國家網路資訊保安研究所...