上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 49 下一页
摘要: 递推法#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)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 题目描述有一个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)
摘要: 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.输入一个无符号整数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 下一页