Skip to content

Instantly share code, notes, and snippets.

@dicenull
dicenull / 01-1-hello_world.cpp
Last active August 5, 2018 07:34
Hello_world-Fizz_Buzz
#include <iostream>
int main()
{
std::cout << "Hello, world!" << std::endl;
return 0;
}
@dicenull
dicenull / pck2016_3
Last active June 20, 2017 11:56
pck2016
#include <iostream>
#include <string>
using namespace std;
int main()
{
int E, Y;
int magic[] = { 1868, 1912, 1926, 1989, 2017 };
string magic_c[] = { "M", "T", "S", "H" };
#include <iostream>
using namespace std;
int main()
{
// それぞれの入力を入れる配列
int t[4];
int n[4];
# include <Siv3D.hpp>
/// <summary>スロットがそろっているか判定する</summary>
/// <param name="slotCount">スロットの数</param>
/// <param name="slots">スロットの各値</param>
bool IsWin(int slotCount, int slots[])
{
bool isWin = true;
for (int i = 0; i < slotCount - 1; i++)
{
@dicenull
dicenull / abc006_b.cpp
Created September 5, 2017 06:20
pck2017 勉強会
// Atcoder Beginner Contest 006 B問題
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int N;
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>モールス信号変換</title>
<style>
/* CSSはココ */
@dicenull
dicenull / UseCsv.cs
Last active December 7, 2018 13:39
YieldReturn
public IEnumerable<Dictionary<string, string>> ReadCsv()
{
var tweet = reader.Read();
if(tweet == null)
{
break;
}
for (int i = 0; i < Keys.Length; i++)
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
int N;
cin >> N;
@dicenull
dicenull / GifMaker.cpp
Last active February 12, 2021 11:52
動く絵文字メーカー
# include <Siv3D.hpp> // OpenSiv3D v0.4.3
// https://siv3d.github.io/ja-jp/news/v043/#3-gif
struct AnimationTexture
{
Array<Texture> textures;
// フレームの時間
Array<int32> delays;
@dicenull
dicenull / main.dart
Last active November 8, 2022 04:37
bustling-dryad-7998
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override