轉自http://www.eefocus.com/PSOCPSOC/blog/11-09/230207_dade0.html我一直都是用ARM板卡與XP 系統的超級終端通訊,或者ARM板卡與xp系統的Tera Term Pro軟體通訊,Tera TermPro軟體就是一種超級終端的軟體,因為有的xp是不帶有超級終端的,因此可能需要安裝Tera Term
//暴力0ms通過,題目的意思是:封裝這些立方體所需要的封裝紙的最小表面積! #include<iostream>#include<climits>using namespace std;int main(){ int tc, cube, i, a, b, c, min, tmp; cin >> tc; while (tc--){ cin >> cube; min = INT_MAX;
//其實是一道很水的題,點知道我在沒有讀懂題意的情況之下,把其做法往深處想了!//注意:You need to expand at most one prefix and one suffix,意思是說只要進行一次首碼和尾碼的//轉換即可(要在有首碼和尾碼的情況之下啊) #include <iostream>#include <string>#include <map> using namespace std;string pre[5],
#include <iostream>#include <string>#include <map> using namespace std;map<string, string> m; map<string, string>::iterator it; int main(){ int l, n, i, len; string str1, str2; bool flag; cin >> l
//Multiply the digits from back to front (!) with repeating factors 9, 3, 7//一定要注意上面這句話的意思,要不在進行求和的時候就會出錯! #include <cstdio>#include <iostream>#include <string>using namespace std;char id[10];int main(){ int tc, len, i, cur, ans,
//不要被這句話迷惑了:Each of the first nine digits can take a value between 0 and 9!!!無關的一句話//這題需要考慮的情況比較多,只要細心一點分清楚需要討論的情況就OK! #include<iostream>#include<string>#include<algorithm>using namespace std;int main(){ string str; cin
#include <iostream>using namespace std;const int MAX = 25;int triangle[MAX][MAX];int main(){ int n, s, i, j, k; bool flag = false; cin >> n >> s; for (i = 0; i <= n; i++){ for (j = 0; j <= i; j++){
#include<iostream>#include<string>#include<vector>using namespace std;struct Info//guess資訊儲存 { int num; string guess;};vector<Info> v;//儲存資訊的結構體! int main(){ int size, i; Info info, tmp; v.clear();