- 博客(2)
- 收藏
- 关注
原创 洛谷选数
#include<stdio.h> #include<cmath> int n,k,tot=0,sum=0; int a[10000]; bool is_prime(long long n) { for (long long i=2; i <=sqrt(n); ++i) { if (n % i == 0) return ...
2018-03-20 19:20:07
619
原创 C++和C语言在同一条件下哪个速度更快?
https://www.luogu.org/problemnew/show/P1219这是洛谷上的一道水题,传统的八皇后问题。那我们就用C++和C分别编写代码看看它们哪个的速度更快。#include<stdio.h> int ans[14],check[3][28]={0},sum=0,n; void eq(int line) { if(line>n) { ...
2018-03-12 22:25:15
9518
6
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅