Skip to content

Instantly share code, notes, and snippets.

View skytomo221's full-sized avatar

skytomo skytomo221

View GitHub Profile
#include <stdio.h>
#include <time.h>
void main() {
printf("%.4fs\n",(double)clock()/CLOCKS_PER_SEC);
for(int i=0;i<100;i++) {
for(int j=0;j<1000000000;j++);
printf("%.4fs\n",(double)clock()/CLOCKS_PER_SEC);
}
printf("all %.4fs\n",(double)clock()/CLOCKS_PER_SEC);
@skytomo221
skytomo221 / my_math.h
Last active September 27, 2016 08:47
#ifndef _STDIO_H
#include <stdio.h>
#endif
/* //
// math.h //
// */
/* Constants rounded for 21 decimals. */
#define M_E 2.71828182845904523536
#define M_LOG2E 1.44269504088896340736
@skytomo221
skytomo221 / .gitignore
Last active November 10, 2018 03:26
さくらインターネットでdiscordrbを使ったボットを稼働させる ref: https://qiita.com/skytomo221/items/5d99d98187f9d2bf1d78
token
client_id
@skytomo221
skytomo221 / DicWord.cs
Last active March 21, 2020 15:19
リパライン語の品詞の種類をリストアップします。
namespace LineparinePartOfSpeechListUp
{
public class DicWord
{
public string Word { get; set; }
public string Trans { get; set; }
public string Exp { get; set; }
public string Level { get; set; }
public string Memory { get; set; }
public string Modify { get; set; }
@skytomo221
skytomo221 / cmavo-A.md
Last active September 26, 2020 17:50
skaitomon-zei-jbovlaste
            a                 e                 o                 u         
   ┌─────────────────┬─────────────────▗▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▖─────────────────┐
   │              U  │              U  ▐█████████████████▌              U  |
   │ ▗▄▄▄A▄▄▄▄▖      │ ┌───A────┐      ▐█▛▀▀▀A▀▀▀▀▜██████▌ ▗▄▄▄A▄▄▄▄▖      |
   │ ▐████████▌      │ │        │      ▐█▌        ▐██████▌ ▐████████▌      |
   │ ▐████████▙▄▄▄▄▖ │ │    ▗▄▄▄▖────┐ ▐█▌    ▗▄▄▄▞▀▀▀▀▜█▌ ▐████▛▀▀▀▘────┐ |
   │ ▐█████████████▌ │ │    ▐███▌    │ ▐█▌    ▐███▌    ▐█▌ ▐████▌   │    │ |
   │ ▝▀▀▀▀▜████████▌ │ └────▝▀▀▀▘    │ ▐█▙▄▄▄▄▞▀▀▀▘    ▐█▌ ▝▀▀▀▀▘───┘    │ |
 │ ▐████████▌ │ │ │ ▐██████▌ ▐█▌ │ │ |
using c=System.Console;using System.Text.RegularExpressions;class P{static void Main(){c.WriteLine(Regex.IsMatch(c.ReadLine(), @"^(?!.*(Ll|lL))(?i)(0[0-7]*|[1-9]\d*|0x[\da-f]+)(u?l?l?|l?l?u?)$"));}}
@skytomo221
skytomo221 / the 言語 Advent Calendar 2018.md
Created November 4, 2020 15:34
the 言語 Advent Calendar 2018
@skytomo221
skytomo221 / wentiay-license.md
Last active December 27, 2020 08:37
ウェンティアユ・ライセンス

ウェンティアユ・ライセンス

Version 2.0, 2020年12月27日

本ライセンス文書を、一字一句忠実に複製、頒布することは許可します。しかし変更は認めません。

利用条件はここから


ロジバンたんのプロフィールとルール

あらすじ

ロジバンと一緒に生まれてきた妖精だけど、 うっかり寝てしまい、 起きたら2019年だった…!?

ぽんこつでなり損ないロジバン妖精、ロジバンたん。

Keybase proof

I hereby claim:

  • I am skytomo221 on github.
  • I am skytomo (https://keybase.io/skytomo) on keybase.
  • I have a public key ASDI6BGSs7iNms7mQ7ZvgAbE1h17RcdvMqgWGR88t4yUXAo

To claim this, I am signing this object: