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.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Text; | |
| using System.Timers; | |
| namespace CodeB |
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 java.util.*; | |
| public class Main { | |
| public static void main(String[] args){ | |
| Scanner sc = new Scanner(System.in); | |
| String str = sc.nextLine(); | |
| StringBuilder sb = new StringBuilder(); | |
| for(int i=0; i<str.length(); i++){ | |
| char c = str.charAt(i); | |
| boolean flag = 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
| from bottle import route,run,template,request,response | |
| import commands | |
| # route decoder | |
| # receiver | |
| @route('/send',method='POST') | |
| def send(): | |
| # file save |
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> |
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
| /* | |
| CUDA サンプルプログラム1 | |
| http://cudasample.net/sample/1/003.html | |
| タイマーについてはこの記事から | |
| http://tnishinaga.hatenablog.com/entry/2014/08/10/215445 | |
| */ | |
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 numpy | |
| import math | |
| # 配列の宣言 | |
| # tk = numpy.zeros(1000,1000) | |
| setten = numpy.array(1000,2) | |
| youso = numpy.array(1000,4) | |
| # w = numpy.array(4) | |
| ek = numpy.array(4,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
| // ---Game.h--- | |
| // ゲームボードやゲームに関するメソッド類を保持する | |
| // ==================== | |
| // ピースに関する情報 | |
| // ==================== | |
| typedef struct{ | |
| int turn; // 回転角 | |
| int num; // 番号 | |
| }Piece; |
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> | |
| extern int PIECESLEN; | |
| extern Piece PIECES[]; | |
| typedef struct{ | |
| int vector[][]; | |
| }Piece; |
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
| Player{ | |
| std::list<Point> connection_points; /* 接続点(置ける点) */ | |
| }; | |
| void expand_with_prior(GameState *state,int player_id){ | |
| /* 接点リストにある点から候補を選ぶ */ | |
| std::list<Point>::iterator it; | |
| for(it=state->player[player_id].connection_points.begin(); it!=player[player_id].connection_points | |
| for(y=0; y<width; w++){ | |
| for(x=0; x<width; x++){ |
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
| # -coding:utf-8- | |
| import numpy | |
| import math | |
| # numpyの表示設定 | |
| numpy.set_printoptions(precision=2) | |
| file = open('txt.txt') | |
| # |
OlderNewer