HustOJ - 1010
1 #include<stdio.h> 2 int main() 3 { 4 int a,b,s,t,i,j; 5 while((scanf("%d",&a)==1)) 6 { 7 if (a<=12&&a>=1) 8 { 9 t=0; 10 for (i=1;i<=a;i++) 11 { 12 s=1; 13 for (j=1;j<=i;j++)1010 菲波那契數14 { 15 s=s*j; 16 } 17 t=t+s; 18 } 19 printf("%d\n",t); 20 } 21 } 22 }
HustOJ - 1010
相關推薦
HustOJ - 1010
++ 分享 lose open pri color src pen spa 1 #include<stdio.h> 2 int main() 3 { 4 int a,b,s,t,i,j; 5 while((scanf("%d",&a
HustOJ - 1011
cnblogs play printf int bsp closed spa hid == 1 #include<stdio.h> 2 int main() 3 { 4 int a,b,s,t,i,j; 5 while((scanf
HustOJ - 1009
div one style sed play close gif splay open 1 #include<stdio.h> 2 int main() 3 { 4 int n,i,t; 5 float q,s; 6 wh
HustOJ - 1021
std truct img 技術 esp 亂碼 != using setw 1 #include<iostream> 2 #include<vector> 3 #include<algorithm> 4 #include<
HustOJ - 1023
ios aps open spa esp cnblogs show http name 1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 char n; 6
HustOJ - 1014
hust tdi sca class splay src hustoj i++ style 1 #include<stdio.h> 2 int main() 3 { 4 int x,i,n,a,c; 5 while(scanf(
HustOJ - 1019
gif clu insert 技術 -a open alt lap multi 1 #include<iostream> 2 #include<set> 3 #include<string> 4 #include<a
HustOJ - 1016
play pen hustoj span sed 技術 %d ++ gif 1 #include<stdio.h> 2 int main() 3 { 4 int n,i,s,j,a[100],w,k; 5 while(scanf("
HustOJ - 1007
log hustoj spa img none 參數 tdi 分享 class 1 #include<stdio.h> 2 int main () 3 { 4 long long a,b,s; 5 6 while(sca
HustOJ - 1013
closed ide img clu 技術分享 pri alt div nbsp 1 #include<stdio.h> 2 int main() 3 { 4 int i,j,s,b,a; 5 float t; 6 s=0
HustOJ - 1026
相同 clas open 否則 style online pen using pro 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 int main()
HustOJ - 1027
分享 系列 src href string size clu char .cn 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 int main() 5
HustOJ - 1025
技術分享 show opened std sca col pro ble tar 1 #include<stdio.h> 2 int main() 3 { 4 int d,n,i,j; 5 scanf("%d",&d);
bzoj 1010 玩具裝箱toy
.cn img center 是我 sof 裝箱 優化 教授 ron 摘自YYF的blog,斜率優化,敬一個! P教授要去看奧運,但是他舍不下他的玩具,於是他決定把所有的玩具運到北京。他使用自己的壓縮器進行壓縮,其可以將任意物品變成一堆,再放到一種特殊的
HDU 4920(杭電多校訓練#5 1010 題) Matrix multiplication(不知道該掛個什麽帽子。。。)
預處理 ica ref 循環 ring sca esp 題解 code 題目地址:HDU 4920 對這個題簡直無語到極點。。。竟然O(n^3)的復雜度能過。。。。方法有三。。 1:進行輸入優化和輸出優化。。(前提是你的輸入優化不能太搓。。。) 2:利用緩存優化。。詳情
編譯安裝libiconv報錯:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
編譯安裝libiconv報錯:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)錯誤如下: In file included from progname.c:26:0: ./stdio.h:101
HDU 1010 Tempter of the Bone
mem ssh tdi tin out 都是 turn == con dfs+剪枝 題意是說一僅僅狗要逃出迷宮,可是必須在某個時間點剛好到出口。 開始裸了一個dfs,TLE。。。剪枝沒有啥思路。本來想用bfs先判是否能到達,感覺不靠譜。
51nod 1010 只包含因子2 3 5的數(打表+排序+二分)
F12 alt bbb art 打表 names syn tdi iostream 1010 只包含因子2 3 5的數 基準時間限制:1 秒 空間限制:131072 KB 分值: 10 難度:2級算法題 收藏 關註 取消關註 K的因子中只包含2 3
1007 正整數分組 1010 只包含因子2 3 5的數 1014 X^2 Mod P 1024 矩陣中不重復的元素 1031 骨牌覆蓋
str clu 重復 裏的 方法 class 如果 oid true 1007 正整數分組 將一堆正整數分為2組,要求2組的和相差最小。 例如:1 2 3 4 5,將1 2 4分為1組,3 5分為1組,兩組和相差1,是所有方案中相差最少的。 Input
研(tu)究(cao)SFTP(HUSTOJ)……
t權限 putty tty 手動 roo 安全 人性 記得 mod 學校題庫加數據,HUSTOJ一點也不人道,數據不能一起加,只能一個一個手動加,20組數據一共40個文件真是累…… 於是SFTP一發,發現在外網下沒root權限不能加數據……woc 試了很多方法,最終都指向開