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
幼女問題というのは、論理パズルの問題のことです。幼女は「幻ノ女」の略称です。論理パズルの世界で登場する、完璧な演繹、推論をするこの世ならざる存在として幼女が使われます。 | |
結果、「幼女問題」と名にし負う問題は沢山あります。今回は、有名無名関係なく、あらゆる論理パズルを幼女問題にしました。 | |
1.2人の幼女のケーキ分け | |
2.2人の幼女の数あて | |
3.3人の幼女の数あて | |
4.5人の幼女の山分け | |
5.5人の幼女の組あて | |
6.13人の幼女とトランプの館 | |
7.23人の幼女と石像の館 |
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
class Util{ | |
static createPromiseContainer(){ | |
return {resolve:null,reject:null,_resolved:[]}; | |
} | |
static createPromiseCallback(callback,promiseContainer){ | |
return (...args)=>{ | |
var isFirst = true; | |
for(var res of callback(...args)){ | |
if(typeof(res)==="undefined"){ |