会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博学善思
一起成长
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
49
下一页
2019年3月16日
斐波那契数列的3种求法及几种素数筛法
摘要: 递推法#includelong long sum[40];//也可以不用开数组 int main(){ int n; scanf("%d",&n); sum[1]=1; sum[2]=1; for(int t=3;tlong long F(int x){ if(x==...
阅读全文
posted @ 2019-03-16 10:21 black_hole6
阅读(385)
评论(0)
推荐(0)
2019年3月12日
Magic Odd Square (思维+构造)
摘要: Find an n × n matrix with different numbers from 1 to n2, so the sum in each row, column and both main diagonals are odd.InputThe only...
阅读全文
posted @ 2019-03-12 16:18 black_hole6
阅读(208)
评论(0)
推荐(0)
Marlin (思维)
摘要: The city of Fishtopia can be imagined as a grid of 44 rows and an odd number of columns. It has two main villages; the first is locate...
阅读全文
posted @ 2019-03-12 16:14 black_hole6
阅读(283)
评论(0)
推荐(0)
2019年3月8日
qdu_组队训练(ABCFIJK)
摘要: A - Second-price Auction Do you know second-price auction? It's very simple but famous. In a second-price auction, each potential buye...
阅读全文
posted @ 2019-03-08 16:53 black_hole6
阅读(194)
评论(0)
推荐(0)
2019年3月6日
2018蓝桥编程题6-9+ 50%的10
摘要: 6.给定三个整数数组A = [A1, A2, ... AN], B = [B1, B2, ... BN], C = [C1, C2, ... CN],请你统计有多少个三元组(i, j, k) 满足:1. 1 #include#include#include#inclu...
阅读全文
posted @ 2019-03-06 22:34 black_hole6
阅读(152)
评论(0)
推荐(0)
2019年3月4日
QDU_AP协会18级ST1
摘要: A - A + B Problem II I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Inpu...
阅读全文
posted @ 2019-03-04 23:08 black_hole6
阅读(174)
评论(0)
推荐(0)
2019年3月3日
QDU_组队训练(ABEFGHKL)
摘要: A - Accurately Say "CocaCola"! In a party held by CocaCola company, several students stand in a circle and play a game.One of them is ...
阅读全文
posted @ 2019-03-03 17:23 black_hole6
阅读(311)
评论(0)
推荐(0)
2019年3月2日
洛谷P1443 马的遍历(bfs,注意输出格式)
摘要: 题目描述有一个n*m的棋盘(1#include#include#include#include#include#include#include#include#include#include#define N 300005 typedef long long ll;u...
阅读全文
posted @ 2019-03-02 17:55 black_hole6
阅读(287)
评论(0)
推荐(0)
QDU_组队训练(AJFC)
摘要: A - Pretty Matrix DreamGrid's birthday is coming. As his best friend, BaoBao is going to prepare a gift for him.As we all know, BaoBao...
阅读全文
posted @ 2019-03-02 17:50 black_hole6
阅读(217)
评论(0)
推荐(0)
蓝桥训练1-3,5-8题解(自己写的,过了蓝桥官网的数据)
摘要: 1.输入一个无符号整数x,输出x的二进制表示中1的个数.输入: 76584输出: 7水题:数据应该也不大,long long 也能过代码:#include#include#include#include#include#include#include#includ...
阅读全文
posted @ 2019-03-02 11:51 black_hole6
阅读(179)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
49
下一页
公告