码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
hdu2023 求平均成绩 ~~很闲~~~
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 int map[60][10]; 9 int main()10 {11 int n,m;12 whi...
分类:其他好文   时间:2015-07-03 09:10:28    阅读次数:111
HackerRank - "Red John is Back"
1AC. 1D DP + Sieving#include #include #include #include #include #include #include #include #include #include #include using namespace std;int ways(in...
分类:其他好文   时间:2015-07-03 07:59:09    阅读次数:110
AJAX MVC 服务器返回Json数据,客户端获取Json数据
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Script.Serialization; namespace MvcApplication2.Controllers { public cl...
分类:Web程序   时间:2015-07-03 06:57:09    阅读次数:138
poj 1256 Anagram
http://poj.org/problem?id=1256题意是说求出一个字符串的全排列,按字典序需要注意的是字典序和传统意义上的字典序不同重新定义了,A#include #include #include #include #include #include using namespace st...
分类:其他好文   时间:2015-07-03 06:53:51    阅读次数:105
C#操作Office.word(三)
前面两篇博客讲解了怎么通过程序控制word的生成,包括生成文字、添加表格、添加图片等。这篇博客主要说一下怎么把word图片转换成pdf。using System;using System.Collections.Generic;using System.Linq;using System.Text;...
分类:Windows程序   时间:2015-07-03 01:43:10    阅读次数:179
poj 2193 Lenny's Lucky Lotto Lists 简单dp
//poj 2193 //sep9 #include using namespace std; typedef __int64 INT; INT dp[16][2048]; int n,m; int main() { int cases,t=0; scanf("%d",&cases); while(cases--){ scanf("%d%d",&n,&m); memset(dp,0...
分类:其他好文   时间:2015-07-03 01:41:59    阅读次数:198
Linked List Cycle II
题目来自:https://leetcode.com/problems/linked-list-cycle-ii/Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up: Can you solve it without using extra s...
分类:其他好文   时间:2015-07-03 00:15:03    阅读次数:220
题目1194:八进制
题目描述: 输入一个整数,将其转换成八进制数输出。 输入: 输入包括一个整数N(0 输出: 可能有多组测试数据,对于每组数据, 输出N的八进制表示数。 样例输入: 7 8 9 样例输出: 7 10 11 C++代码: #include using namespace std; int main() { int n; ...
分类:其他好文   时间:2015-07-03 00:14:49    阅读次数:159
层次创建二叉树
第一种:主要是利用 树结点类型的数组、二叉树结点序号之间的关系 来创建:父结点序号为 i 则,左儿子结点序号为 2*i ,右儿子序号为 2*i+1.//用层次遍历的方法来创建二叉树#include #include using namespace std;//二叉链表的结构类型定义const int...
分类:其他好文   时间:2015-07-03 00:07:09    阅读次数:242
Test语言编译器V1.0
感觉这个挺好耍的,书上的代码有错误,而且功能有限。一、词法分析特点:(1)可对中文进行识别:(2)暂不支持负数,可以在读入‘-'时进行简单标记后就能对简单负数进行识别了。#include #include #include #include using namespace std;#define K...
分类:编程语言   时间:2015-07-03 00:02:01    阅读次数:417
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!