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
#define _CRT_SECURE_NO_WARNINGS | |
#include<iostream> | |
using namespace std; | |
#define N 100005 | |
int n, k; | |
int arr[N]; | |
int segarr[4 * N]; | |
// find dum; | |
int bulid(int pos=0, int l = 0, int r = n - 1) { | |
if (l == r) { |
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> | |
#include <iostream> | |
using namespace std; | |
string h, ss; | |
vector<int> v; | |
vector<int> inst; | |
int toint(string s) { | |
int j = 1; | |
int num; | |
num = 0; |
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> | |
using namespace std; | |
char arr[100000000]; | |
void add(int i,int & j){ | |
string s=""; | |
while(i){ | |
s+=i%10+'0'; | |
i/=10; | |
} |
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> | |
using namespace std; | |
map<int, int> reminder; | |
vector<int> digits; | |
int main() { | |
int a, b; | |
while (cin >> a) { | |
cin >> b; | |
int result = a / b; |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
#include <cstdio> | |
#include <string> | |
#include <cstring> | |
#include <iomanip> | |
#include <algorithm> | |
#include <vector> | |
#include <cmath> | |
#include <cstdlib> |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
#include <cstdio> | |
#include <string> | |
#include <cstring> | |
#include <iomanip> | |
#include <algorithm> | |
#include <vector> | |
#include <cmath> | |
#include <cstdlib> |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
#include <cstdio> | |
#include <string> | |
#include <cstring> | |
#include <iomanip> | |
#include <algorithm> | |
#include <vector> | |
#include <cmath> | |
#include <cstdlib> |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
#include <cstdio> | |
#include <string> | |
#include <cstring> | |
#include <iomanip> | |
#include <algorithm> | |
#include <vector> | |
#include <cmath> | |
#include <cstdlib> |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
#include <cstdio> | |
#include <string> | |
#include <cstring> | |
#include <iomanip> | |
#include <algorithm> | |
#include <vector> | |
#include <cmath> | |
#include <cstdlib> |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
#include <cstdio> | |
#include <string> | |
#include <cstring> | |
#include <iomanip> | |
#include <algorithm> | |
#include <vector> | |
#include <cmath> | |
#include <cstdlib> |
NewerOlder