2018年12月26日

Bailian1183 反正切函数的应用【迭代计算】

摘要: "1183:反正切函数的应用" 总时间限制: 1000ms 内存限制: 65536kB 描述 反正切函数可展开成无穷级数,有如下公式 (其中0 int main(void) { long long a, m; scanf("%lld", &a); for(m = a; ; m ) if(!((a a 阅读全文

posted @ 2018-12-26 09:27 新海岛Blog 阅读(272) 评论(0) 推荐(0)

Bailian4134 查找最接近的元素【二分查找】

摘要: "4134:查找最接近的元素" 总时间限制: 1000ms 内存限制: 65536kB 描述 在一个非降序列中,查找与给定值最接近的元素。 输入 第一行包含一个整数n,为非降序列长度。1 include define N 100000 int a[N]; int main(void) { int n 阅读全文

posted @ 2018-12-26 09:14 新海岛Blog 阅读(387) 评论(0) 推荐(0)

POJ3014 Cake Pieces and Plates【整数划分+DP】

摘要: "Cake Pieces and Plates" Time Limit: 5000MS Memory Limit: 131072K Total Submissions: 6810 Accepted: 2168 Case Time Limit: 1000MS Description kcm1700, 阅读全文

posted @ 2018-12-26 02:20 新海岛Blog 阅读(93) 评论(0) 推荐(0)

导航

// ... runAll: function() { this.resetPreCode(); hljs.initHighlightingOnLoad(); // 重新渲染,添加语法高亮 hljs.initLineNumbersOnLoad(); // 为代码加上行号 } // ...