This file contains hidden or 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
| fun isCycle(indegree: Array<Int>, G : MutableList<MutableList<Int> >) :Boolean { | |
| val queue = ArrayDeque<Int>() | |
| var cnt = 0 | |
| for(idx in 0..indegree.size-1){ | |
| if(indegree[idx] === 0){ | |
| queue.add(idx); | |
| cnt++; | |
| } |
This file contains hidden or 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
| #include <iostream> | |
| #include <algorithm> | |
| using namespace std; | |
| const int MAXN = 200010; | |
| const long long MOD = 998244353; | |
| long long tree[MAXN]; | |
| int N,M; | |
| char A[MAXN],B[MAXN]; |
This file contains hidden or 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
| #include <iostream> | |
| #include <queue> | |
| #include <memory.h> | |
| using namespace std; | |
| int N; | |
| int arr[21][21]; | |
| int currx,curry; | |
| int dist[21][21]; | |
| int dx[4] = {1,-1,0,0}, dy[4] = {0,0,1,-1}; | |
| int w,adder,my,mx; |
This file contains hidden or 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
| #include <iostream> | |
| #include <memory.h> | |
| #include <algorithm> | |
| using namespace std; | |
| const int MAXN = 301; | |
| int a[MAXN]; | |
| int DT[MAXN][3]; | |
| int n; | |
| int memo(int curr,int step){ |
This file contains hidden or 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
| #include <iostream> | |
| #include <vector> | |
| using namespace std; | |
| const int MAXN = 1000001; | |
| const long long mod = 1000000007; | |
| long long Tree[MAXN * 4]; | |
| int N; | |
| long long update(int left,int right,int node,int idx,int value){ | |
| if(right < idx || idx < left)return Tree[node]; |
This file contains hidden or 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
| #include <iostream> | |
| #include <queue> | |
| #include <vector> | |
| #include <memory.h> | |
| using namespace std; | |
| const int MAXN = 101; | |
| vector<int> G[MAXN]; | |
| int n; | |
| int teamcolor[MAXN]; | |
| int team[2][101]; |
This file contains hidden or 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
| #include <iostream> | |
| #include <vector> | |
| #include <queue> | |
| #include <cstdio> | |
| #include <memory.h> | |
| using namespace std; | |
| const int MAXN = 10001; | |
| vector<pair<int,int> >G[MAXN]; | |
| int mcheck[MAXN],scheck[MAXN]; | |
| int dist[MAXN]; |
This file contains hidden or 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
| package main | |
| import ( | |
| "bufio" | |
| "container/heap" | |
| "fmt" | |
| "os" | |
| "strconv" | |
| "strings" | |
| ) |
This file contains hidden or 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
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" -) | |
| add_custom_target(qtum COMMAND make -C ${qtum_SOURCE_DIR} CLION_EXE_DIR=${PROJECT_BINARY_DIR}) -j4 |
This file contains hidden or 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
| $ ./autogen.sh | |
| $./configure |
NewerOlder