看板 CSCamp2009 關於我們 聯絡資訊
最簡單的作法: #include<stdio.h> long long n,count; int main(){ while(scanf("%I64d",&n)!=EOF){ count=0; while(n>=5){ n/=5; count+=n; } printf("%I64d\n",count); } return 0; } 題目: ZJd122 "Oh! My Zero!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.60.107.236
xatier:毛起來除以五就對啦!! 08/11 15:49