Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Rzutka gra 2
//g++ 5.4.0 #include <iostream> #include <cmath> using namespace std; int x,y,z,a,i,s; int main() { cin>>x>>y>>z; for(i;i<z;i++) { cin>>a; if(a>=x && a<=y) { s=0; } else if(a>y) { s=s+(a-y); } else { s=s+(x-a); } } cout<<s; }
run
|
edit
|
history
|
help
0
Divide
BST to DLL
data locality - fast example
Stream4
D.E.Shaw Binary Search Question
int divide by int
Operation on Set Container
ამოცანა#2---------Point and a rectangle II
Tree
Listas enlazadas - Generar lista con repetidos