Skip to content

Instantly share code, notes, and snippets.

View abap34's full-sized avatar

Yuchi Yamaguchi abap34

View GitHub Profile
<!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.
mutable struct Variable
data
grad
creator
end
mutable struct Func
input :: Variable
output :: Variable
forward :: Function
<!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.
<!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"
import Base
using DeepShiba
using BenchmarkTools
rosenbrock(a, b) = 100 * (b - a^2)^2 + (a - 1)^2
function Base.String(result::BenchmarkTools.Trial)
#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.
#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)
{