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
from manim import * | |
class SieveEratosthenes(Scene): | |
def construct(self): | |
text = Text("Sieve of Eratosthenes").scale(1.5) | |
self.play(Write(text)) | |
self.wait(2) | |
self.play(text.animate.shift(3 * UP).scale(0.5)) | |
W = 7 |
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
#include <climits> | |
class Solution { | |
public: | |
int myAtoi(string str) { | |
long long num = 0; | |
int mult = 1; | |
int it = 0; | |
while(it < (int)str.length() && str[it] == ' ') it++; |
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
#include <bits/stdc++.h> | |
#define F first | |
#define S second | |
//#define debug | |
using namespace std; | |
const int MXN = 1e5 + 10; | |
const int INF = 1e9 + 7; |
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
#include <bits/stdc++.h> | |
//#define file_stream | |
//#define debug | |
using namespace std; | |
const int MXN = 1e5 + 10; | |
vector <int> g[MXN], order, tmp[MXN]; |
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
/* | |
HLD by Anuar Talipov | |
Data of upload: 04.03.2014 | |
*/ | |
#include <bits/stdc++.h> | |
#define file_stream | |
using namespace std; |