Skip to content

Instantly share code, notes, and snippets.

View xryuseix's full-sized avatar
🐣
🐥 🐥 🐥

Ryusei Ishikawa xryuseix

🐣
🐥 🐥 🐥
View GitHub Profile
@xryuseix
xryuseix / list.cpp
Last active August 5, 2021 02:29
Cで線型Listを作ります
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct __physcheck
{
char name[20];
int height;
double vision;
struct __physcheck *next;
} PhysCheck;
function storageGet() {
var res;
chrome.storage.local.get(res = callbackFunc(items));
console.log(res);
return res;
}
function callbackFunc(items) {
console.log(items);
callback(items);
@xryuseix
xryuseix / dfs.cpp
Created May 6, 2020 07:28
通りがけ順DFSで縦に二分木を出力
#include <iostream>
#include <algorithm>
#include <vector>
#include <climits>
using namespace std;
typedef vector<int> vi;
const int INF = INT_MAX;
int arr_size = 10;
int v[] = {-1,88,2,4,6,8,10,11,24,54};
@xryuseix
xryuseix / ヒープソート.cpp
Created May 6, 2020 07:25
ヒープソート
#include <iostream>
#include <algorithm>
#include <vector>
#include <climits>
using namespace std;
typedef vector<int> vi;
const int INF = INT_MAX;
const int SIZE = 13;
@xryuseix
xryuseix / 確定申告.md
Created April 27, 2020 19:48
簡単な調査の結果.結構間違っているかもしれない.

確定申告に関するまとめ

確定申告とは

  • 税金を納める制度
  • 個人事業主は全員やる
  • 会社員はやらなくていい(参考:年末調整)

支払う税金

#include <array>
#include <iostream>
#include <numeric>
#include <vector>
using namespace std;
class Point : public std::array<double, 2> {
public:
static const int DIM = 2;