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
def getTotalX(a, b): | |
#x%a[i]==0 x>=a[i] | |
#b[i]%x==0 x<=b[i] | |
#max(a[i])<=x<=min(b[i]) | |
cnt= 0 | |
for x in range(max(a), min(b)+1): | |
for va in a: | |
if x%va != 0: break | |
else: |
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 OpenGL.GLUT import * | |
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
from collections import defaultdict | |
class vec2: | |
def __init__(self,x,y): | |
self.x=x | |
self.y=y |
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 "myclass.h" | |
int myclass::get_x() | |
{ | |
return x; | |
} | |
void myclass::set_x(int v) | |
{ | |
x= v; |