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
<!DOCTYPE html> | |
<html> | |
<body> | |
<script> | |
var N; | |
var count = 0; | |
function inCircle(x,y){ | |
return (x * x + y * y) <= 1; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
mutable struct Variable | |
data | |
grad | |
creator | |
end | |
mutable struct Func | |
input :: Variable | |
output :: Variable | |
forward :: Function |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<script> | |
var a = Number(prompt("a:")) | |
var b = Number(prompt("b:")) | |
for (var r = a % b; r != 0; r = a % b) { | |
a = b | |
b = r |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html> | |
<html> | |
<div id="hoge"> hoge </div> | |
<body> | |
<script> | |
for (var i = 0; i < 10; i++) { | |
for (var j = 0; j < 500000000; j++) { } | |
if (i % 2 == 0){ | |
document.getElementById("hoge").innerText = "2" |
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
import Base | |
using DeepShiba | |
using BenchmarkTools | |
rosenbrock(a, b) = 100 * (b - a^2)^2 + (a - 1)^2 | |
function Base.String(result::BenchmarkTools.Trial) |
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
#define _GLIBCXX_DEBUG | |
#include <bits/stdc++.h> | |
using namespace std; | |
using Graph = vector<vector<int>>; | |
#define rep(i, n) for (int i = 0; i < (int)(n); i++) | |
#define ALL(a) (a).begin(), (a).end() | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#define _GLIBCXX_DEBUG | |
#include <bits/stdc++.h> | |
using namespace std; | |
using Graph = vector<vector<int>>; | |
#define rep(i, n) for (int i = 0; i < (int)(n); i++) | |
#define ALL(a) (a).begin(), (a).end() | |
template <typename T> | |
void output_2d_arr(vector<T> A) | |
{ |
OlderNewer