首页 > TAG信息列表 > 搬運

字符串(搬運)

char vowels[] = "aeiouAEIOU"; bool isVowel(char c) { // (1) int i; for(i = 0; vowels[i]; ++i) { if(vowels[i] == c) { return true; } } return false; } void swap(char *a, char *b) {

順序表(搬運)

#include <stdio.h> int a[1010]; void Input(int n, int *a) { for(int i = 0; i < n; ++i) { scanf("%d", &a[i]); } } void Output(int n, int *a) { for(int i = 0; i < n; ++i) { if(i) printf(&q

初等數論入門(搬運)

#define maxp 65536 #define ll long long int primes[maxp]; bool notprime[maxp]; // 1 void Eratosthenes() { notprime[1] = true; primes[0] =

拓撲排序(搬運)

class Solution { #define maxn 10010 vector<int> edges[maxn]; public: vector<int> eventualSafeNodes(vector<vector<int>>& graph) { int i, j; int n = graph.size(); bool visited[maxn]; i

線段樹(搬運)