码迷,mamicode.com
首页 >  
搜索关键字:华为设备 静态nat 动态nat pat    ( 13726个结果
PAT 1040 Longest Symmetric String
#include #include using namespace std;char line[1001];char line2[2003];int syslen(char str[], int start) { int len = 1; int p = start - 1; in...
分类:其他好文   时间:2014-11-07 00:52:32    阅读次数:145
PAT 1077
簡單題,用C++寫了...需要注意的是,cin了之後不會把\n吃掉,需要再getchar一次才能夠吃掉\n,然後接着geline才正確感覺沒什麼美感... 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include ...
分类:其他好文   时间:2014-11-06 23:31:40    阅读次数:241
PAT 1076
JAVA沒法玩系列,C++寫了是248ms,JAVA 3000ms的時間限制都TLE,我已經看到考PAT的時候自己沮喪的樣子了。簡單的BFS。 1 import java.util.*; 2 import java.io.*; 3 4 class FastReader{ 5 Bu...
分类:其他好文   时间:2014-11-06 23:29:44    阅读次数:286
PAT 1056 Mice and Rice
#include #include #include #include #include using namespace std;list::iterator group_pick(list &player, list::iterator &cur, int group_size, vector &...
分类:其他好文   时间:2014-11-06 17:04:49    阅读次数:187
PAT 1084 Broken Keyboard
#include #include #include using namespace std;char linea[82];char lineb[82];bool tbl[256];char cap(char ch) { if (ch >= 'a' && ch broken; cha...
分类:其他好文   时间:2014-11-06 12:52:41    阅读次数:177
PAT 1030 Travel Plan
#include #include #include #include #include #include #include #define CMB(ID1, ID2) (((ID1) adj; int dist; City(int d = INT_MAX): dist(d){}};ty...
分类:其他好文   时间:2014-11-06 12:43:14    阅读次数:214
使用NotePad++ 运行轻量级的C#代码
在notepad++中新建文件hello.cs,F5运行,配置命令行cmd /K C:\windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /t:exe /out:$(FULL_CURRENT_PATH).exe $(FULL_CURRENT_PAT...
分类:Windows程序   时间:2014-11-04 17:16:46    阅读次数:203
sql server 2005全角与半角字符转换
CREATE FUNCTION D_ByteExchangeS_Byte(@str NVARCHAR(4000), --要转换的字符串@flag bit --转换标志,0转换成半角,1转换成全角)RETURNS nvarchar(4000)ASBEGIN DECLARE @pat nvarchar(...
分类:数据库   时间:2014-11-04 12:52:58    阅读次数:173
PAT 1083 List Grades
#include #include using namespace std;class Stu { public: char name[12]; char id[12];};int main() { int N = 0; // because all t...
分类:其他好文   时间:2014-11-04 01:33:12    阅读次数:128
PAT 1058 A+B in Hogwarts
#include #include using namespace std;class Number {public: int a; int b; int c; Number(int _a = 0, int _b = 0, int _c = 0): a(_a), b(_b),...
分类:其他好文   时间:2014-11-04 01:31:37    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!