自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 Codeforces Round #820 (Div. 3)

要求,至少两个人去餐厅一天,且他们的实际花费之和

2022-09-13 17:56:57 347

原创 Codeforces Round #806 (Div. 4)题解

Codeforces Round #806 (Div. 4)题解

2022-07-16 13:40:20 576

原创 Codeforces Round #805 (Div. 3)题解

目录A. Round Down the PriceB. Polycarp Writes a String from MemoryC. Train and QueriesD. Not a Cheap Stringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAt the store, the salespeople want to make all pri

2022-07-11 22:25:31 737

原创 codeforces题解(800)

目录A. Optimal PathA. The Third Three Number ProblemA. XOR Mixuptime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a table aa of size n×mn×m. We will consider the table rows numbered from top t

2022-07-09 22:56:18 1238

原创 Educational Codeforces Round 131 (Rated for Div. 2)题解

目录A. Grass FieldB. PermutationC. Schedule Managementtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a field of size 2×22×2. Each cell of this field can either contain grass or be empty. The valu

2022-07-09 18:02:12 802

原创 代码题(C语言)

目录1水仙花数2.斐波那契数列3.汉诺塔4.杨辉三角4.1用二维数组实现4.2用一维数组实现5.八皇后1水仙花数所谓"水仙花数"是指一个3位数,其各位数字立方和等于该数本身。例如,153是水仙花数,因为,153 = 1 ^ 3 + 5 ^ 3 + 3 ^ 3int main(){ int i; int a, b, c; for (i = 100; i < 1000; i++) { a = i % 10; b = i / 10 % 1.

2022-05-28 00:05:28 224

原创 顺序查找,折半(二分)查找

顺序查找,数据大小可以无序int main()//算法缺点:慢{ int arr[] = {3,6,9,12,5,8,7,21,44,67,81,26}; int key; int i; scanf("%d",&key); for (i = 0; i < sizeof(arr) / sizeof(arr[0]); i++) { if (key == arr[i]) { printf("找到了在%d号下标\n",i); return 0;//提前结束这个函

2022-05-27 23:20:53 109

原创 while和do while,冒泡法和选择法排序

while和do while 区别 执行0次和1次#include<stdio.h>int main(){int i=0; while(i<0)//先判断后执行 { printf("%d\n",i); i++; } do//先执行后判断 { printf("%d\n",i); i++; }while(i<0)return 0;}冒泡法...

2022-05-15 18:32:19 205

原创 原码,反码,补码

只有负数需要求其补码,负数用补码表示,正数不需要原码->补码补码->原码 补码按位取反+1

2022-05-13 22:14:45 246

原创 C语言基础知识

1,占用字节整型:short(2) int(4) long(4) long long(8)浮点:float(4)单精度 double(8)双精度->默认布尔:bool(1) true字符:char(1) * a ASCLL码为 97 * A ASCLL码为 65 * 0 ASCLL码为 48 %c 字符型 %f 浮点型 -> float doubl...

2022-05-12 22:47:43 570 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除