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
using System; | |
namespace CGSS_Calc | |
{ | |
/// <summary> | |
/// デレステのアピール値やスコアの計算メソッドをまとめたもの | |
/// 参考 : http://imascg-slstage-wiki.gamerch.com/%E3%82%A2%E3%83%94%E3%83%BC%E3%83%AB%E5%80%A4%E8%A8%88%E7%AE%97 | |
/// http://imascg-slstage-wiki.gamerch.com/%E3%82%B9%E3%82%B3%E3%82%A2%E8%A8%88%E7%AE%97 | |
/// 式 : | |
/// アピール値 = { (素のステータス) × (100 + 発揮される効果の和:単位%) × 0.01} の小数点以下を切り上げたもの ←Calc_Api [support = false] |
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
#!/bin/bash | |
# Author : Oyakodon | |
# Summary : HTMLをMARKDOWNに変換する | |
# Expected Dir Tree : |-hoge.html | |
# |-html2md.sh | |
# |-md[dir] | |
# Usage : html2md.sh [HTML-FILENAME] | |
# 引数チェック |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Search_Algo_Compare | |
{ | |
/// <summary> | |
/// 自作探索プログラムで探索アルゴリズムを比較する。 |
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
using System; | |
namespace Hanoi | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int num; | |
Console.WriteLine("- ハノイの塔 -"); |
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
using System; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var a = int.Parse(Console.ReadLine()); | |
var b = int.Parse(Console.ReadLine()); | |
var n = int.Parse(Console.ReadLine()); | |
var i = n; |
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
using System; | |
namespace ABC033 | |
{ | |
public class A | |
{ | |
public static void Main(string[] args) | |
{ | |
var input = Console.ReadLine(); | |
Console.WriteLine(checker(input) ? "SAME" : "DIFFERENT"); |
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
<?php | |
$content=""; | |
if(isset($_GET["id"])){ | |
$id = $_GET["id"]; | |
switch ($id) { | |
case "stop": | |
exec("nohup /usr/bin/killall mplayer > /dev/null &"); | |
$content="再生を停止しました。"; | |
break; |
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
#!/bin/bash | |
# http://oykdn.hatenablog.com/entry/2016/02/24/231148 | |
# <ゆっくりに時刻を言わせる> | |
HOUR=`date '+%l' | tr -d ' '` # 時刻の取得 | |
AMPM=`date '+%p'` # 午前 or 午後 | |
# 午前か午後かで分岐 | |
if [ $AMPM = "AM" ]; then | |
AMPM="ごぜん" |
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
using System; | |
using System.Collections.Generic; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var rnd = new Random(Environment.TickCount - 1); // 乱数 | |
var nullpo = new List<char>() { 'ぬ', 'る', 'ぽ' }; // 「ぬるぽ」の3文字のChar型配列 | |
var str = ""; // これまで選択された文字をどんどんケツに連結させるためのString |
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
using System; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var input = Console.ReadLine().Split(' '); | |
var A = int.Parse(input[0]); | |
var B = int.Parse(input[1]); | |
var ret = Math.Abs(A - B); |
OlderNewer