摘要:
求最短路,套模板就可以~ #include <iostream> #include <cstdio> #include <cstring> using namespace std; #define inf 0x7ffffff int w[1005][1005],v[1005],d[1005]; in 阅读全文
摘要:
Merge Two Sorted Lists 题目: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of th 阅读全文
摘要:
一道应用kmp算法中next数组的题目 这当中vis[i]从1加到n vis[i]=[next[i]]+1; #include<string.h> #include<stdlib.h> #include<stdio.h> #include<iostream> #include<algorithm> 阅读全文
摘要:
MainActivity例如以下: package cc.sp; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import android.os.Bundle; import android.u 阅读全文
摘要:
路由事件的宿主都是些拥有可视化实体的界面元素。而附加事件则不具备显示在用户界面上的能力。加入和移出附件事件的两个方法命名约定: 1、为目标UI元素加入附加事件侦听器的包装器是一个名为Add*Handler的public static方法。星号代表事件名称,与注冊事件时的名称一致。 2、解除UI元素对 阅读全文