みんなちゃんと参加記書いていたので、僕も負けないように書きます!!! 圧倒的成長!!!
今年も豊橋技術科学大学として高専プロコンの競技部門に挑みました。
去年はメインのメンバーでしたが、今年からは後方支援だったり引率として長野まで 遊びに 行きました。
| \documentclass[a4paper, 11pt, twocolumn]{jarticle} | |
| % \pagestyle{plain} | |
| % 上 35mm | |
| \setlength{\topmargin}{40truemm} | |
| \addtolength{\topmargin}{-1truein} | |
| % ヘッダなし | |
| \setlength{\headheight}{0mm} | |
| \setlength{\headsep}{0mm} | |
| % 左右 30mm | |
| \setlength{\oddsidemargin}{30truemm} |
| /** | |
| # 35msくらいで100万番目の素数を求める | |
| $ ldmd2 -O -release -inline foo.d | |
| 15485863 | |
| 34 | |
| 参考:http://d.hatena.ne.jp/k3_kaimu/20120806/1344253324 | |
| */ | |
| import std.stdio; | |
| import std.math; | |
| import std.datetime : StopWatch; |
| import std.algorithm; | |
| import std.datetime; | |
| import std.range; | |
| import std.stdio; | |
| import std.typecons; | |
| import tuthpc.mpi; | |
| import tuthpc.taskqueue; | |
| # -*- coding: shift_jis -*-#------------------------------------------------------------------------------import numpy as npimport numpy.linalg as LAimport matplotlib.pyplot as pltimport os,sys#------------------------------------------------------------def title(name=None,make=0,suffix=''): if name==None: name = sys._getframe(1).f_code.co_name + suffix #呼び出し元の関数名を取得する。 else: name += suffix print("="*10+name+"="*10) if (make) and not os.path.isdir(name): os.makedirs(name) return name#------------------------------------------------------------getattrs=lambda obj,names:map(lambda name:getattr(obj,name),names.split())setattrs=lambda obj,names,attrs:[setattr(obj,name,attrs[i]) for i,name in enumerate(names.split())]#------------------------------------------------------------------------------class FDM: '''移流方程式のEuler, RK2,RK4による時間発展シミュレーション空間方向は常に中央差分を使用'''#------------------------------------------------------------------------------ def __init__(self,**kargs): |
| // Written in the D programming language. | |
| /* | |
| NYSL Version 0.9982 | |
| A. This software is "Everyone'sWare". It means: | |
| Anybody who has this software can use it as if he/she is | |
| the author. | |
| A-1. Freeware. No fee is required. | |
| A-2. You can freely redistribute this software. |
| package main | |
| import "github.com/ChimeraCoder/anaconda" | |
| import "fmt" | |
| import "net/url" | |
| import "strings" | |
| import "strconv" | |
| import "math/rand" | |
| import "time" |
| import core.simd; | |
| import std.stdio; | |
| import std.datetime; | |
| import std.math; | |
| import std.parallelism; | |
| import std.range; | |
| import std.random; | |
| cfloat dotProduct(in Vector!(float[4])[] a, in Vector!(float[4])[] b) |
| import imageformats; | |
| import std.algorithm; | |
| import std.conv; | |
| import std.exception; | |
| import std.file; | |
| import std.math; | |
| import std.stdio; | |
| import std.string; | |
| import std.stdio; | |
| import derelict.sdl2.sdl; | |
| import derelict.sdl2.image; | |
| import std.string; | |
| import std.conv; | |
| import std.exception; | |
| static this() | |
| { | |
| DerelictSDL2.load(); |