摘要:
现在想记录一下计算机科学的学习路程。最近一直在学习算法与数据结构,感觉到了困难,也在尝试着去做OJ上的题。的确算法题目是锻炼思维的好方法。但是我更相信算法不重要,想法才重要!如果只是被各种奇妙的算法限制住对计算机的热忱,其实是很不值得的。我也没有想在参加ACM/ICPC竞赛的想法,竞赛好像不太适合我... 阅读全文
摘要:
#include#include#include#define N 8int arr[N];void queens(int *arr);int checkPosition(int *arr, int i);int main(){// 初始化数组 int i; for(i = 0; i =... 阅读全文
摘要:
import reex=raw_input()num="1234567890"a=re.findall("\d+",ex)b=re.findall("[+-]",ex)l=[]if len(a)==len(b): for i in range(len(a)): l.append(... 阅读全文
摘要:
#include #include #include using namespace std;int main(){ int n;cin>>n; while(n--){ stack s; string str;cin>>str; for(int ... 阅读全文
摘要:
/*#include #include #define N 100#define LIM -100000000float det(float a[N][N],int n){ if(n==1) return a[0][0]; if(n==2) return a[... 阅读全文