2 Free--Fly

尚未进行身份认证

代码是敲出来的,题是想出来的,不过是数据的错,掉头发是难免的,秃顶是有可能的,怕啥啊,一个字“干”。

等级
TA的排名 29w+

codeblocks安装教程

在下载codeblocks后直接双击你下载好的安装包即可图片仅供参考,操作步骤不变双击后部分电脑会出现:。。。。。。实行更改,选择是就可以(否则你无法安装)进入后,点Next,如图选择 I Agree,如图继续Next,如图进入当前界面后,你会看到下图蓝色圈区域,这里是安装位置选择,一般会默认在C盘内安装,如果不喜欢在C盘的话就自己选择别的地方安装,C盘安装是完...

2019-09-29 22:27:26

sublime text3 搭建c++/c环境

sublime搭建的c++/c使用很方便,实用性很强,自己阅览了无数的博客,csdn,博客园的都看了,最后还是自己摸索着搭建成功了,如果觉得还不错请给个评论谢谢。(提前声明本人专利不允许转载!!!!)转载备注地址:https://www.cnblogs.com/luhongkai/p/9812851.html(个人博客园地址)一、配置环境大部分都是下载安装MinGW文件,但是我不喜欢这...

2019-03-14 20:11:52

Maps-STL

 话说这题给的很明确自己看看就会了Maps are a part of the C++ STL.Maps are associative containers that store elements formed by a combination of a key value and a mapped value, following a specific order.The mainly u...

2018-08-28 18:14:33

A. Reorder the Array

You are given an array of integers. Vasya can permute (change order) its integers. He wants to do it so that as many as possible integers will become on a place where a smaller integer used to stand. ...

2018-08-22 14:26:59

C. Summarize to the Power of Two

A sequence a1,a2,…,ana1,a2,…,an is called good if, for each element aiai, there exists an element ajaj (i≠ji≠j) such that ai+ajai+aj is a power of two (that is, 2d2d for some non-negative integer dd)....

2018-08-22 13:05:40

CF--1009B. Minimum Ternary String

You are given a ternary string (it is a string which consists only of characters '0', '1' and '2').You can swap any two adjacent (consecutive) characters '0' and '1' (i.e. replace "01" with "10" or ...

2018-07-30 09:34:06

B. Messages

outputstandard outputThere are n incoming messages for Vasya. The i-th message is going to be received after ti minutes. Each message has a cost, which equals to A initially. After being received, the...

2018-06-12 21:29:13

A. Splits

Let's define a split of n as a nonincreasing sequence of positive integers, the sum of which is n.For example, the following sequences are splits of 8: [4, 4], [3, 3, 2], [2, 2, 1, 1, 1, 1], [5, 2, 1]...

2018-06-12 20:24:52

Find The Multiple

Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 200 and there...

2018-05-18 19:27:39

杭电----之----叠筐

叠筐Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 23898    Accepted Submission(s): 6306Problem Description需要的时候,就把一个个大小差一圈的筐叠上去,使得从上往下看时,边筐花色交错。...

2018-05-01 10:44:15

Lowest Common Multiple Plus----杭电

Problem Description求n个数的最小公倍数。 Input输入包含多个测试实例,每个测试实例的开始是一个正整数n,然后是n个正整数。 Output为每组测试数据输出它们的最小公倍数,每个测试实例的输出占一行。你可以假设最后的输出是一个32位的整数。 Sample Input2 4 63 2 5 7 Sample Output1270#include<stdio.h>...

2018-04-27 20:06:06

-- 魔咒词典 --

Sample Input[expelliarmus] the disarming charm[rictusempra] send a jet of silver light to hit the enemy[tarantallegra] control the movement of one's legs[serpensortia] shoot a snake out of the end ...

2018-04-23 19:14:22

Parallelogram Counting(平行四边形计数)

#include<stdio.h>#include<iostream>#include<algorithm>#include <cstring>#include <string>#include <math.h>#include <cstdio>#include <cmath&g

2018-04-22 11:11:53

第八章报告,指针8.2

实验三、指针与字符串一、调试实例#include<stdio.h>#include<string.h>int main(void){ int i; char str[80],min[80]; printf("Input 5 strings:\n"); scanf("%s",str); strcpy(min,str); ...

2018-04-19 23:08:41

进制转换(只是部分适用)

十进制转换为任意进制#include <stdio.h>int i=0;void turn(int num,int kind){ if(num==0) { if(i==0) printf("0"); return; } i++; turn(num/kind,kind); if(...

2018-04-18 17:05:35

杭电--------求平均成绩

#include<stdio.h>#include<iostream>#include<algorithm>#include <cstring>#include <string>#include <math.h>#include <cstdio>#include <cmath&g

2018-04-18 16:33:49

第八章第一次报告,指针

一、实验目的1、掌握指针的概念、定义和初始化。2、理解指针与地址之间的关系。二、实验内容1、完成教材实验八第一部分。    2、用指针实现三个整数的由大到小输出。三、实验程序一.#include<stdio.h>int main(){ int max,x,y,*pmax,*px,*py; scanf("%d%d",&x,&y); ...

2018-04-17 20:48:37

实验八,指针报告(第二次)

实验二、指针与数组一、实验目的1、 理解指针和数组间的关系。2、 掌握通过指针操作数组元素的方法。3、 掌握数组名作为函数参数的编程方式。二、实验内容1、 完成教材实验八剩余部分。2、 用指针实现数组元素的逆序存放。三、实验程序二、基础编程题1、#include<stdio.h>int main(void){ void sum_diff(float op1,float ...

2018-04-17 20:36:43

C语言程序设计报告第九章

#include<stdio.h>struct ser{ int h,m,s;} time;int main(){ int x; scanf("%d:%d:%d",&time.h,&time.m,&time.s); scanf("%d",&x); time.s+=x; if(...

2018-04-17 20:21:59
勋章 我的勋章
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!
  • 勤写标兵Lv1
    勤写标兵Lv1
    授予每个自然周发布1篇到3篇原创IT博文的用户。本勋章将于次周周三上午根据用户上周的博文发布情况由系统自动颁发。