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 | |
| def func(a, sign, b): | |
| if a == '1': | |
| return (b, sign) | |
| if b == '1': | |
| return (a, sign) | |
| if a == 'i' and b == 'j': | |
| return ('k', sign) | |
| if a == 'j' and b == 'i': |
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 | |
| cases = int(raw_input()) | |
| for c in xrange(cases): | |
| # read in misc problem constants | |
| x, y = map(str, raw_input().split()) | |
| m = 0 | |
| x = int(x) | |
| s = int(y[0]) |
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 <curses.h> | |
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| int main() | |
| { | |
| initscr(); // init curses | |
| start_color(); |
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
| // debug | |
| // right :3 oclock , up: 12 oclock, left : 9oclock, down 6 oclock | |
| // Basic functions | |
| function isequal(u, v) { | |
| if (u[0] === v[0] && u[1] === v[1]) { | |
| return true; | |
| } else{ | |
| return false; | |
| } | |
| } |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Data; | |
| using System.Net; | |
| using System.Reflection; | |
| using GLib; | |
| using Gst; | |
| using Gst.BasePlugins; | |
| using Newtonsoft.Json; | |
| using System.Diagnostics; |
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
| { | |
| "SOUTH": {"1":"5:39","2":"6:29","3":"6:56","4":"7:31","5":"8:06","6":"8:41","7":"9:14","8":"9:49","9":"10:24","10":"11:30","11":"12:36","12":"13:42","13":"14:46","14":"15:52","15":"16:32","16":"17:19","17":"17:56", "18":"18:33","19":"19:07","20":"19:44","21":"20:44","22":"21:44"}, | |
| "NORTH": {"1":"5:46", "2":"6:26","3": "6:17","4": "7:52","5": "8:27","6":"9:02","7": "10:11", "8":"11:19","9":"12:25","10": "13:31","11":"14:37", "12":"15:49", "13":"16:30","14": "16:55", "15":"17:35","16": "18:22","17":"19:33","18": "20:33", "19":"21:33", "20":"22:33"} | |
| } |
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
| """ | |
| Created on June 19th, 2013. via. Sublime Text 2 | |
| @author: lurker | |
| """ | |
| #!/usr/bin/env python | |
| # -*- coding: utf8 -*- | |
| import urllib2,httplib |
NewerOlder