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(salvageon). | |
-export([main/0]). | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% CodeIQ / サルベジオン問題 を解きました。 | |
% (https://codeiq.jp/ace/yuki_hiroshi/q1215) | |
% | |
% ・db1 はキーが昇順にソートされているので二分探索で探せば見つかります。 | |
% 大きな整数を扱える、Erlang でプログラムを書きました。 | |
% |
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 | |
$dsn = 'mysql:dbname=singularity;host=localhost'; | |
$user = 'ユーザー名'; | |
$pass = 'パスワード'; | |
$pdo = new PDO($dsn, $user, $pass); | |
// 1年のうちの日ごとに処理をする | |
for ($i = 0; $i < 365; $i++) { |
NewerOlder