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.Linq; | |
using System.Text; | |
namespace Test | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
@echo off | |
echo C Sharp Compile Assistant | |
PATH="%WINDIR%\Microsoft.NET\Framework\v1.0.3705";%PATH% | |
PATH="%WINDIR%\Microsoft.NET\Framework\v1.1.4322";%PATH% | |
PATH="%WINDIR%\Microsoft.NET\Framework\v2.0.50727";%PATH% | |
PATH="%WINDIR%\Microsoft.NET\Framework\v3.0";%PATH% | |
PATH="%WINDIR%\Microsoft.NET\Framework\v3.5";%PATH% | |
PATH="%WINDIR%\Microsoft.NET\Framework\v4.0.30319";%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
using System; | |
using System.Linq; | |
namespace STAP | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var rnd = new Random(); |
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.Linq; | |
static class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string[] inner = new string[] { "a", "b", "c", "d", "e" }; | |
string[] outer = new string[] { "b", "d" }; |
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.Linq; | |
using System.Text; | |
using System.Net; | |
class Nyan | |
{ | |
string attack = "https://game.coderunner.jp/attack?token=xxxxxxxx&skill={0}"; | |
void Work() |
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
// 2014/11/23 11:16:20 | |
// AC: 24, WA: 0 | |
// http://abc015.contest.atcoder.jp/submissions/283939 | |
// 敗因: n = 1のときの場合分け不足 | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
class C1 |
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
# !/bin/sh | |
readonly target="target_name" # "abc.rb" | |
readonly execute="execution_command" # "ruby abc.rb &" or "ruby ${target} &" | |
while true | |
do | |
proc=$(ps -ef | grep ${target} | grep -v grep | wc -l) | |
if [ ${proc} = 0 ]; then | |
echo "Target process was terminated!!" | |
${execute} |
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.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Threading.Tasks; | |
using System.Net; | |
namespace Procon | |
{ |
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.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Net; | |
class Client | |
{ | |
readonly string Token = "unique_token"; |
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 PriorityQueue | |
{ | |
public List<int> list; | |
public int Count { get { return list.Count; } } | |
public PriorityQueue() | |
{ | |
list = new List<int>(); | |
} |
OlderNewer