本規程は、企業活動に伴い発生する経済事象を発生日基準で完全に捕捉し、適用会計基準に準拠した評価・表示処理を実施したうえで、財務情報としての再現性および監査可能性を保証した状態で確定させることを目的とする。
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
| // --- 定数・カラー定義 --- | |
| #let phi = 1.618 | |
| #let primary-navy = rgb("#111827") | |
| #let secondary-gray = rgb("#4b5563") | |
| #let bg-gray = rgb("#f9fafb") | |
| #let alert-red = rgb("#b91c1c") | |
| #let success-green = rgb("#10b981") | |
| #let proforma-blue = rgb("#0ea5e9") | |
| // --- ヘルパー関数 --- |
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 rand::Rng; | |
| use rand::RngExt; | |
| use rand::prelude::IndexedRandom; | |
| use rayon::prelude::*; | |
| use std::collections::HashMap; | |
| use std::env; | |
| use std::time::Instant; | |
| // ===================== | |
| // モデルパラメータ | |
| // ===================== |
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
| {-# LANGUAGE FlexibleContexts #-} | |
| {-# LANGUAGE TypeApplications #-} | |
| import qualified Data.ByteString.Char8 as BS | |
| import Data.Char (isSpace) | |
| import Data.List (foldl', unfoldr) | |
| -- 最小ピース長が minSize 以上で k 個以上のピースに分割可能かをチェックする関数 | |
| isValidPartition :: Int -> [Int] -> Int -> Bool | |
| isValidPartition minSize pieces k = count >= k |