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 <Siv3D.hpp> // OpenSiv3D v0.6.4 | |
enum class State { | |
None, | |
Swapping, | |
Pivot, | |
}; | |
class QuickSortVisualizer { | |
public: |
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
function fetchBookData(isbn) { | |
const url = `https://iss.ndl.go.jp/api/opensearch?isbn=${isbn}`; | |
const xml = UrlFetchApp.fetch(url).getContentText(); | |
const document = XmlService.parse(xml); | |
const items = document.getRootElement().getChildren('channel')[0].getChildren('item'); | |
if (items.length == 0) { | |
return; | |
} | |
else { | |
const item = items[0]; |
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
inline unsigned int randxor() { | |
static unsigned int x=123456789,y=362436069,z=521288629,w=88675123; | |
unsigned int t; | |
t=(x^(x<<11));x=y;y=z;z=w; return( w=(w^(w>>19))^(t^(t>>8)) ); | |
} |
NewerOlder