码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
b-2题解
大体思路还是贪心,那首先肯定从2下手,因为2加的最多减的最多,而且处理完二后,就是只剩下01的话是可以相互抵消的。 首先处理(2,1)加的最多,然后处理(0,2)让其减的最少,然后处理(2,2)这样2就完了剩下的01抵消 水一篇题解 /* + + + + [ >i>n[t */ #include<s ...
分类:其他好文   时间:2021-05-03 12:36:13    阅读次数:0
BST完全实现
1 #include <iostream> 2 #include<string> 3 #include<binaryNode.hpp> 4 using namespace std; 5 template<typename T> 6 class BST { 7 public: 8 BST() { sz ...
分类:其他好文   时间:2021-05-03 12:22:02    阅读次数:0
c语言 5-10 求4行3列矩阵和3行4列矩阵的乘积。各构成元素的值从键盘输入。
求4行3列矩阵和3行4列矩阵的乘积。各构成元素的值从键盘输入。 1、 #include <stdio.h> int main(void) { int i, j, k, a[4][3], b[3][4], c[4][4] = {0}; puts("input the elements of 4 row ...
分类:编程语言   时间:2021-05-03 12:19:28    阅读次数:0
最大的最大公约数-暴力筛
题目:https://vjudge.net/contest/389321#problem/D 题意: 给出N个正整数,找出N个数两两之间最大公约数的最大值。例如:N = 4,4个数为:9 15 25 16,两两之间最大公约数的最大值是15同25的最大公约数5。 第1行:一个数N,表示输入正整数的数量 ...
分类:其他好文   时间:2021-05-03 12:11:43    阅读次数:0
CSP202104-2领域均值
思路清晰就好,不是很难只是有点复杂。 #include<bits/stdc++.h> #define atest using namespace std; int n,l,r,t; int mapp[601][601]; int main(){ cin>>n; cin>>l; cin>>r; cin ...
分类:其他好文   时间:2021-05-03 11:58:33    阅读次数:0
实验4 函数和数组应用编程
实验任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n ...
分类:编程语言   时间:2021-04-30 12:31:46    阅读次数:0
实验四
任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = ...
分类:其他好文   时间:2021-04-30 12:31:08    阅读次数:0
实验4
#include<stdio.h> void fun(int n); int main(){ int n; long long f; while(scanf("%d", &n)!=EOF){ fun(n); } return 0; } void fun(int n){ int f[505],a[50 ...
分类:其他好文   时间:2021-04-30 12:29:16    阅读次数:0
实验四
#include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = %d, ...
分类:其他好文   时间:2021-04-30 12:24:09    阅读次数:0
一文读懂C++ String类在算法竞赛中的常见用法
一文读懂C++ String类在算法竞赛中的常见用法 string 相较于C语言的字符数组可方便太多了,在算法竞赛中能大大节省我们的时间。以下是我在刷题中会使用到的常见String用法。注释都写好了。 #include <iostream> #include <string> using names ...
分类:编程语言   时间:2021-04-30 12:14:45    阅读次数:0
84546条   上一页 1 ... 34 35 36 37 38 ... 8455 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!