Skip to content

Instantly share code, notes, and snippets.

View abap34's full-sized avatar

Yuchi Yamaguchi abap34

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