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
// add reference to System.Runtime.Serialization, Version=4.0.0.0 | |
// add reference to System.XML, Version=4.0.0.0 | |
using System.IO; | |
using System.Runtime.Serialization; | |
using System.Text; | |
public static class DataContractParser | |
{ | |
public static T ReadObject<T>(Stream stream) | |
{ |
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
@SET FXCOPEXE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\FxCop\fxcopcmd.exe | |
"%FXCOPEXE%" ^ | |
/rule:FxCopCustom\bin\Debug\FxCopCustom.dll ^ | |
/file:FxCopCustomTestRunLibrary\bin\Debug\FxCopCustomTestRunLibrary.dll ^ | |
/out:fxcopResult.xml | |
pause |
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
// add reference to System.Runtime.Serialization, Version=4.0.0.0 | |
using System.IO; | |
using System.Runtime.Serialization.Json; | |
using System.Text; | |
/// <summary>json形式のファイルまたは文字列をインスタンスに変換またはその逆変換を行います。 | |
/// 変換に用いるインスタンスには<see cref="System.Runtime.Serialization.DataContract"/> 属性が必要です。</summary> | |
public static class JsonParser | |
{ | |
public static T ReadObject<T>(Stream stream) |
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
#解けてない | |
module Q2 | |
def self.strike | |
strikes = [1, 2] | |
#5以外を抜くボールの枚数の重複なし組み合わせを求める | |
result1 = [] | |
(1..8).each do |n| | |
strikes.repeated_combination(n).each do |ss| |
NewerOlder