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
import React from 'react'; | |
import { shallow } from 'enzyme'; | |
import { | |
View, Text, | |
StyleSheet, | |
} from 'react-native'; | |
const styles = StyleSheet.create({ | |
container: { |
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
import { action, Actor, state, World } from "./defines"; | |
function wmc1616(state0: number, state1: number) { | |
state0 = 18030 * (state0 & 0xffff) + (state0 >> 16); | |
state1 = 30903 * (state1 & 0xffff) + (state1 >> 16); | |
return [ | |
((((state0 & 0xffff) << 16) + (state1 & 0xffff)) >>> 0) / 2 ** 32, | |
state0, | |
state1, | |
]; |
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<vector<int>> modifiedGraphEdges(int n, vector<vector<int>>& edges, int source, int destination, int target) { | |
vector<vector<pair<int, int>>> graph(n); | |
for (int i = 0; i < edges.size(); i++) { | |
graph[edges[i][0]].push_back({ edges[i][1], i }); | |
graph[edges[i][1]].push_back({ edges[i][0], i }); | |
} | |
vector<int> route; |
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
#ifdef ONLINE_JUDGE | |
#define NO_STD_INCLUDES | |
#endif | |
#include "tdzl/common.hpp" | |
#include "tdzl/utility/vector.hpp" | |
#include "tdzl/polynomial/convolution.hpp" | |
class Solution { | |
public: |