原创 MD5算法 C語言實現
MD5算法 C語言實現 實現了計算字符串和文件的MD5 算法來自百度百科 VS2013下成功編譯運行,速度一般吧。。。 代碼如下: #include <stdio.h> #include <stdlib.h> #define
原创 POJ.2420.A Star not a Tree.模擬退火.0ms
http://poj.org/problem?id=2420 題目大意: 給出平面上n個點,求到所有點距離和最短的點,輸出該距離和。 代碼: #include <stdio.h> #include <stdlib.
原创 IOCCC.1984.anonymous.c.解析
anonymous.c: int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\ o, world!\n",'/'/'/'));}read(j,i,p)
原创 Leetcode.Majority Element
Majority Element Given an array of size n, find the majority element. The majority element is the element that
原创 【題解】.HDU.STDContest.計算機學院大學生程序設計競賽(2015’11)
1001.搬磚 Problem Description 小明現在是人見人愛,花見花開的高富帥,整天沉浸在美女環繞的笙歌妙舞當中。但是人們有所不知,春風得意的小明也曾有着一段艱苦的奮鬥 史。 那時的小明還沒剪去長髮,
原创 SHA1算法 C語言實現
SHA1算法 C語言實現 實現了計算字符串,文件的SHA1值 算法來自百度百科 代碼如下: #include <stdio.h> #include <stdlib.h> #define SHA1_ROTL(a,b) (SHA1_
原创 30行C代碼實現貪喫蛇
一個簡易版的控制檯貪喫蛇遊戲實現了最基礎的一些功能代碼如下: #include <windows.h> #include <conio.h> #define PrintAt(c,s) SetConsoleCursorPosition(h
原创 【題解】QDUOJ.65.again and again
描述 xx學習了Trie樹後,向你問了一個問題,給定一個字符串集合S={str1, str2, …,strn}和一個字符串s,在s的後面接儘量少的字符,使其屬於集合S。當然如果s本身就屬於S,s就是答案。 輸入 第一行
原创 IOCCC.1987.korn.c.解析
korn.c main() { printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);} http://ioccc.org/years.html#1987 這
原创 掃雷遊戲 C語言實現
掃雷遊戲 C語言實現 實現瞭如下功能: 鼠標控制 左鍵點開 右鍵標記 中鍵自動翻開(效果同windows掃雷) 首次點擊不會中雷 下面是幾張效果圖: 這是初始界面,3種難度級別,難度同經典版windows掃雷 B
原创 52行c代碼實現俄羅斯方塊
一個簡易版的控制檯俄羅斯方塊遊戲 代碼如下: #include <stdio.h> #include <windows.h> #include <conio.h> #define PrintAt(x,y,s) (CC.X=x,CC.Y
原创 POJ.2182.Lost Cows 非遞歸線段樹 0ms
Lost Cows Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 10681 Accepted: 6852 Description N
原创 開源的 OnlineJudge
作者 virusdefender 原文鏈接 https://virusdefender.net/index.php/archives/657/ 。 qduoj 是 青島大學開源的一個 OnlineJudge,GitHub 地址
原创 【修正BUG】SHA-256算法 C語言實現
SHA-256算法 C語言實現 感謝 qq_20453319 提醒,現已修正BUG 實現了計算字符串,文件的SHA-256值 算法來自: Federal.Information.Processing.Standards.Publica
原创 【VSCode】Windows下VSCode編譯調試c/c++【更新 2018.03.27】
————————– 2018.03.27 更新————————- 便攜版已更新,點此獲取便攜版 已知BUG:中文目錄無法正常調試 用於cpptools 0.15.0插件的配置文件更新 新的launch.json // Availa