NWU_ACM

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 6 7 8 9 10

2017年2月15日

摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cmath> 4 #include <cstdlib> 5 #include <algorithm> 6 using namespace std; 7 int main() 8 { 9 int 阅读全文
posted @ 2017-02-15 17:39 NWU_ACM 阅读(96) 评论(0) 推荐(0) 编辑

2017年2月14日

摘要: 版本一: 1 #include<bits/stdc++.h> 2 #define IO ios_base::sync_with_stdio(0);cin.tie(0); 3 using namespace std; 4 int prime[32770], phi[32770]; 5 int main 阅读全文
posted @ 2017-02-14 19:39 NWU_ACM 阅读(124) 评论(0) 推荐(0) 编辑

2017年2月13日

摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int n,a[30005],ans,i,j,k,m; 5 while(scanf("%d",&n)!=EOF) 6 { 7 ans=1; 8 for(i=0;i<n;i++) 9 a[i]=0; 10 //预处理,开始时 阅读全文
posted @ 2017-02-13 16:42 NWU_ACM 阅读(96) 评论(0) 推荐(0) 编辑

2017年2月12日

摘要: 用栈优化: #include <stdio.h> #define MAXN 1000005 double stack[MAXN], temp; int n, top; int main() { while(scanf("%d", &n) != EOF) { top = 0; for(int i = 阅读全文
posted @ 2017-02-12 18:28 NWU_ACM 阅读(89) 评论(0) 推荐(0) 编辑

2017年2月11日

摘要: #include <stdio.h> bool col[15]; bool dia1[25], dia2[25]; //dia1用来标记满足x + y = i + j的坐标, dia2用了标记满足x - y = i - j的坐标 int ans, n, f[11]; void dfs(int row 阅读全文
posted @ 2017-02-11 20:45 NWU_ACM 阅读(105) 评论(0) 推荐(0) 编辑

摘要: 题解By: Jstyle知识点一 要想三边满足构成三角形的条件有两个 1、任意两边之和大于第三边。 2、任意两边之差小于第三边。知识点二 假设三边为 a, b, c 且满足 a <= b <= c;那么只需要满足 a+b > c即可; 证明: 任意两边之和大于第三边: 因为 a <= b <= c, 阅读全文
posted @ 2017-02-11 10:24 NWU_ACM 阅读(245) 评论(0) 推荐(0) 编辑

2017年2月9日

摘要: 第一种思路(by 陈奎学长) 第二种思路(by Album) 阅读全文
posted @ 2017-02-09 10:34 NWU_ACM 阅读(177) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10