码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
实验2
任务1 #include <stdio.h> int main() { int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d,e=%d,f=%d",d,e,f); return 0; } 对应数学运算式分别是0*100;50 ...
分类:其他好文   时间:2020-11-01 10:04:28    阅读次数:12
实验2
#include<stdio.h> int main(){ int a=5,b=7,c=100,d,e,f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d, e=%d, f=%d\n",d,e,f); return 0; } 任务2 #include<s ...
分类:其他好文   时间:2020-11-01 10:00:57    阅读次数:8
实验二
#include <stdio.h> int main() { int a=5, b=7, c=100, d, e, f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d,e=%d,f=%d\n",d,e,f); return 0; } d=ac/b,e= ...
分类:其他好文   时间:2020-11-01 09:51:04    阅读次数:8
实验2
#include <stdio.h> int main() { int a=5, b=7, c=100, d, e, f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d, e=%d, f=%d\n",d,e,f); return 0; } d=[5/7] ...
分类:其他好文   时间:2020-11-01 09:48:13    阅读次数:5
P4514 上帝造题的七分钟 | 二维前缀和板子
# include <bits/stdc++.h> using namespace std; const int N = 2050; int n,m; int lowbit(int x) {return x & -x;} struct _2wBIT { int a[N][N]; void clear ...
分类:其他好文   时间:2020-11-01 09:41:49    阅读次数:19
实验2
#include<stdio.h> int main(){ int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d,e=%d,f=%d\n",d,e,f); return 0; } 数学计算式:d=5/7*100=0*100= ...
分类:其他好文   时间:2020-11-01 09:40:48    阅读次数:10
PTA一些题目
1.树的同构 思路:因为他是只交换左右子节点,就可以发现同构的树的父亲节点是相同的,所以你只要记住一个结点的父亲节点是什么,判断两棵树上相同点的父亲节点是否相同,就可以判断是否同构。 最后判断下为只有一个结节点的特殊情况。 /* n==1的情况是不符合的 */ #include<bits/stdc+ ...
分类:其他好文   时间:2020-11-01 09:39:49    阅读次数:16
C++面试题:斐波那契数列
#题目:写一个函数,输入你n,求斐波那契数列的第n项 (1)C语言教科书上的递归解法 缺点:虽然直观,但时间效率低。(存在重复计算) int f1(int n) { if(n < 1) { return 0; }else if(n == 1 || n == 2) { return 1; } retu ...
分类:编程语言   时间:2020-10-31 01:36:35    阅读次数:18
CodeForces - 1436D Bandit in a City
https://codeforces.com/problemset/problem/1436/D 这题就是让村名尽可能集中在叶子上,但是可能叶子上本来就有很多村民,就是这样。 假设 1. mx[x]为在x点可以抓到的最多的人 2. chal[x]为 在x点还差chal[x]人就可以让x下面所有叶子都 ...
分类:其他好文   时间:2020-10-31 01:31:44    阅读次数:13
编程技巧
关于线程创建函数pthread_create #include<pthread.h> int pthread_create(pthread_t *tidp, const pthread_attr_t *attr, void *(*start_rtn)(void*), void *arg); // 第 ...
分类:其他好文   时间:2020-10-30 13:18:56    阅读次数:37
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!