Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
te lo paso
//g++ 5.4.0 #include <iostream> #include <vector> using namespace std; vector<int> ft; int maxtam; int LSOne(int n){ return n&(-n); } void actualiza(int n, int valor) { while(n<maxtam) { ft[n]+=valor; n+=LSOne(n); } } int consulta(int a){ int suma=0; while(a--){ suma+=ft[a]; a-=LSOne(a); } return suma; } int main() { int N, P, entrada, a, b, c, d; char comando; cout<<scanf("%d",&N); /*while(){ if(!cin.eof()){ break; } cin>>P; }*/ }
run
|
edit
|
history
|
help
0
Lockable static queue
string match2
Guess Number
Speed
Parser + Str2Int
horse aand goat working
Synchro#3
QuickSort
NameTempSpecial
ignat2