This file contains hidden or 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 collections import defaultdict | |
import math | |
import time | |
class Pintrust: | |
# parameter | |
target_user = 5332 # 5332 | |
alpha = 1e-2 | |
beta = 1e-5 | |
eps = 0.005 |
This file contains hidden or 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 <cstdio> | |
#include <iostream> | |
#include <vector> | |
#include <map> | |
#include <set> | |
#include <string> | |
#include <algorithm> | |
#include <ctime> | |
#include <fstream> | |
#include <cmath> |
This file contains hidden or 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
class FindZero { | |
private: | |
ifstream fin; | |
ofstream fout; | |
clock_t start; | |
const string userFactorsFile = "user_factors"; | |
const string itemFactorsFile = "item_factors"; | |
const string zeroFile = "zero_list.txt"; | |
map<ll, int> userMap, itemMap; | |
vector<vector<double> > users, items; |
This file contains hidden or 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 <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <string> | |
#include <map> | |
#include <algorithm> | |
#include <ctime> | |
using namespace std; | |
typedef long long ll; |
This file contains hidden or 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 <cstdio> | |
#include <iostream> | |
#include <vector> | |
#include <map> | |
#include <string> | |
#include <algorithm> | |
#include "BigDecimal.h" | |
#include <ctime> | |
#include <cmath> | |
using namespace std; |
This file contains hidden or 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
var fireEvent = function (element, event) { | |
if (document.createEventObject) { | |
var evt = document.createEventObject(); | |
return element.fireEvent("on" + event, evt); | |
} else { | |
var evt = document.createEvent("HTMLEvents"); | |
evt.initEvent(event, true, true); | |
return !element.dispatchEvent(evt); | |
} | |
}; |
This file contains hidden or 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 _ASSERT(cond) ((!(cond)) ? _assert(#cond,__FILE__,__LINE__) : _noassert()) | |
#include "BigDecimal.h" | |
#include <string.h> | |
#include <stdlib.h> | |
#include <iostream> | |
#include <stdio.h> | |
static int _scale = 100; | |
static const std::string ONE("1"); |
This file contains hidden or 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 <iostream> | |
#include <vector> | |
#include <map> | |
using namespace std; | |
#define mp make_pair | |
#define MN 1000 | |
int matrix[MN][MN]; | |
#define MAT vector<vector<double> > |
This file contains hidden or 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 <GLUT/GLUT.h> | |
#include <OpenGL/glu.h> | |
#include <OpenGL/gl.h> | |
static int Day = 0, Time = 0; | |
// 화성의 날짜와 시간 | |
static int MDay = 0, MTime = 0; | |
void MyDisplay() { |
This file contains hidden or 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 <GL/freeglut.h> | |
#include <GL/glu.h> | |
#include <GL/gl.h> | |
static int Day = 0, Time = 0; | |
void MyDisplay() | |
{ | |
glClear(GL_COLOR_BUFFER_BIT | |
|GL_DEPTH_BUFFER_BIT); |