码迷,mamicode.com
首页 >  
搜索关键字:using 127.0.0.1 for servername    ( 53996个结果
得到栈中的最小值
#include <iostream> #include <stack> using namespace std; class GetMinStack{ public: void push(int x); void pop(); int top(); int getmin(); private: s ...
分类:其他好文   时间:2021-01-13 11:27:28    阅读次数:0
结构体字符串排序
#include<iostream> #include<cstring> #include<algorithm> using namespace std; struct node { string x; //装票数 int num; //装号数 int lenx; //装票数的位数 }s[25]; ...
分类:编程语言   时间:2021-01-13 11:00:17    阅读次数:0
atcoder abc 188 题解
A - Three-Point Shot 题目大意 两个球队现在分数分别给出,问少的一方投入三分球之后是否能翻盘. 代码 #include <bits/stdc++.h> using namespace std; typedef long long ll; #define forn(i,x,n) f ...
分类:其他好文   时间:2021-01-13 10:46:21    阅读次数:0
CF1036C Solution
题目链接 题解 很普通的数位dp题呐,$state$表示$>0$的数位个数。 AC代码 #include<bits/stdc++.h> #define int long long using namespace std; int dp[20][5],a[20],cnt; int dfs(int po ...
分类:其他好文   时间:2021-01-12 11:02:11    阅读次数:0
C#用冒泡法对数组中10个整数按照从小到大排序。
1.题目要求如下: 用冒泡法对数组中10个整数按照从小到大排序。 //数组本身就是一种引用类型。 2.来吧展示,代码如下: using System; namespace Unit_2._4 { class Program { //冒泡排序,从小到大 static void sort(int[] a ...
分类:编程语言   时间:2021-01-12 10:39:48    阅读次数:0
用C#设计一个控制台应用程序,定义若干个学生对象,每个学生对象包括学号、姓名、语文成绩、数学成绩和英语成绩,采用静态成员求各学生的平均分和各门课程的平均分。
1.题目要求如下: 用C#设计一个控制台应用程序,定义若干个学生对象,每个学生对象包括学号、姓名、语文成绩、数学成绩和英语成绩,采用静态成员求各学生的平均分和各门课程的平均分。 2.来吧展示: using System; namespace Experiment_3._1 { class Progr ...
分类:Windows程序   时间:2021-01-12 10:37:59    阅读次数:0
CF1472A Cards for Friends
本题解与Luogu同步 Solution 把长和宽分解,之后相乘看结果 可以定义一个函数实现分解,采用递推的形式 然后一个while循环实现 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using ...
分类:其他好文   时间:2021-01-12 10:36:21    阅读次数:0
Linux-C-GetUserName
Linux-C-GetUserName code //getUserName.c #include <iostream> #include <string> using namespace std; #ifdef linux #include <unistd.h> #include <pwd.h> ...
分类:系统相关   时间:2021-01-11 11:16:12    阅读次数:0
单链表反转
#include <iostream> #include <vector> #include <string> using namespace std; struct Node { int data; Node * next; }; Node * reverseList(Node * head) { ...
分类:其他好文   时间:2021-01-11 11:11:15    阅读次数:0
c#实现 正弦sin、反正弦arcsin,正切tan、反正切arctan:求角度值
1 #region 三角函数和反三角函数 2 3 using System; 4 using System.Collections.Generic; 5 using System.IO; 6 using System.Linq; 7 using System.Messaging; 8 using S ...
分类:Windows程序   时间:2021-01-11 11:09:21    阅读次数:0
53996条   上一页 1 ... 49 50 51 52 53 ... 5400 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!