No | TYPE | Count |
---|---|---|
01 | UP | 72 |
02 | UP_LEFT | 64 |
03 | UP_RIGHT | 64 |
04 | LEFT | 72 |
05 | RIGHT | 72 |
06 | DOWN | 72 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- coding:utf-8-unix -*- | |
//! エラトステネスの篩 & 生成した素数の試し割りによる素因数分解 | |
//! | |
//! ## 素因数分解の実行例 | |
//! | |
//! [`main`] を参照 | |
//! | |
//! ## ベンチマーク実行例 | |
//! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64, io, struct, zlib | |
from typing import BinaryIO, List, Tuple, Union | |
COLOR_TYPE_V = 0 | |
COLOR_TYPE_VA = 4 | |
COLOR_TYPE_RGB = 2 | |
COLOR_TYPE_RGBA = 6 | |
PixelV = Tuple[int] | |
PixelVA = Tuple[int, int] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::collections::HashMap; | |
fn greet_map(id: usize, name: String) -> HashMap<usize, String> { | |
let mut map = HashMap::new(); | |
let message = format!("Hello, {}!", name); | |
map.insert(id, message); | |
map | |
} | |
fn main() { |
For the calculation of the sum of integers
First, the integers
-
$A_{i-1:j}+B_{i-1:j} \lt N^{i-j}-1$ ;None
-
$A_{i-1:j}+B_{i-1:j} = N^{i-j}-1$ ;Propagate
-
$A_{i-1:j}+B_{i-1:j} \gt N^{i-j}-1$ ;Generate
Example for a decimal number:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""StLang@Lark 実行環境サンプル standalone版""" | |
### TODO: ここからを本番の問題用の正しいコードに書き換える | |
PROGRAM = r""" | |
# サンプルプログラム: 二項係数 nCk の計算 (N > 62 の時は演算オーバーフローする可能性あり) | |
if N >= K # N < K の時の出力は 0 とする | |
$0 = 1 | |
$1 = 1 | |
$2 = N | |
while $1 <= K # for $1 in 1..=K |