This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution { | |
public: | |
int numEquivDominoPairs(vector<vector<int>>& d) | |
{ | |
int res = 0, n = d.size(); | |
map<pair<int, int>, int> m; | |
for(int i = 0; i < n; i++) | |
{ | |
if(d[i][0] > d[i][1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution | |
{ | |
public: | |
int tribonacci(int n) | |
{ | |
int a[6] = {0, 1, 1, 2, 4, 7}; | |
if(n < 6) | |
{ | |
return a[n]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution { | |
public: | |
int countCharacters(vector<string>& words, string chars) | |
{ | |
map<char, int> m; | |
for(auto x : chars) | |
{ | |
m[x]++; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution | |
{ | |
public: | |
vector<string> invalidTransactions(vector<string>& t) | |
{ | |
set<string> res; | |
map<string, vector<vector<string> > > m; | |
int n = t.size(); | |
for(int i = 0; i < n; i++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NET_PROFILE_THRESHOLD 10 | |
NET_PREDICT_THRESHOLD 8 | |
+ ./qemu-x86_64 /home/alfons0329/VM_Spring_2020/HW1/vm2020_hw1_benchmark/gcc/gcc.vm2020 /home/alfons0329/VM_Spring_2020/HW1/vm2020_hw1_benchmark/gcc/g23.i | |
Trace statistic: | |
Profile threshold: 10 | |
Predict threshold: 8 | |
Number of traces : 10176 | |
LLVM trans. time : 33.567042 seconds | |
Avg # blocks : 2.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
00:00:00,638 --> 00:00:03,020 | |
合作對象: | |
2 | |
00:00:03,020 --> 00:00:06,020 | |
SPACEFOX.SHOP Space Clothing | |
(太空主題服飾) | |
3 |