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
-- [30599] debug = True | |
-- [30599] db_host = | |
-- [30599] Redshift Column Encoding Utility Configuration | |
-- [30599] Created Cloudwatch Emitter in us-east-1 | |
-- [30599] Connect [30599] | |
-- [30599] set statement_timeout = '1200000' | |
-- [30599] [30599] Running set statement_timeout = '1200000' | |
-- [30599] Success. | |
-- [30599] set application_name to 'ColumnEncodingUtility-v.9.3.4' | |
-- [30599] [30599] Running set application_name to 'ColumnEncodingUtility-v.9.3.4' |
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 <unordered_set> | |
using namespace std; | |
template <class T> | |
void print(vector<T> items) { | |
for(T item:items) | |
cout << item << " "; |
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
// Start of HEAD | |
import org.json.simple.JSONArray | |
import org.json.simple.JSONObject | |
import org.json.simple.parser.JSONParser | |
import collection.JavaConversions._ | |
// End of HEAD | |
// Start of Body | |
/** |
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
# Start of HEAD | |
require 'json' | |
TestStruct = Struct.new( | |
:testcase_id, | |
:testcase_input_path, | |
:testcase_output_path, | |
:testcase_expected_output_path, | |
:metadata_file_paths, | |
:submission_code_path, |
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
import sys | |
import numpy as np | |
f = sys.stdin | |
# f = open("../input00.txt") | |
[n, m] = map(int, f.readline().strip().split()) | |
X = np.zeros((n, m), dtype="float") | |
Y = np.zeros(n) |
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
// Start of BODY | |
public class CustomChecker { | |
static boolean is_prime_number(int n) { | |
for(int i=2;i<n;i++) { | |
if(n%i==0) | |
return false; | |
} | |
return true; |
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
// Start of HEAD | |
import java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
import org.json.simple.JSONArray; | |
import org.json.simple.JSONObject; | |
import org.json.simple.parser.JSONParser; | |
// End of HEAD |
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
# Start of HEAD | |
import json | |
import string | |
import sys | |
# End of HEAD | |
# Start of BODY | |
''' | |
TestStruct:: |
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 <stdio.h> | |
#include <string.h> | |
#include <math.h> | |
#include <stdlib.h> | |
#define getR(value) ((value & 0x0000FF00) >> 8) | |
#define getG(value) ((value & 0x00FF0000) >> 16) | |
#define getB(value) ((value & 0xFF000000) >> 24) | |
int main() { |
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
// Start of HEAD | |
#include <map> | |
#include <cmath> | |
#include <cstdio> | |
#include <vector> | |
#include <fstream> | |
#include <iostream> | |
#include <algorithm> | |
#ifdef __APPLE__ | |
#include <json/json.h> |