AOJトライに関する知識知見の記録共有:DSL_1_A
タスク概要 Disjoint Set: Union Find Tree コード実装例 TIPS 例外処理含む評価パターンを追加 import pprint, sys, time def core...
18 search resultsShowing 1~18 results
You need to log-in
タスク概要 Disjoint Set: Union Find Tree コード実装例 TIPS 例外処理含む評価パターンを追加 import pprint, sys, time def core...
タスク概要 Enumeration of Combinations コード実装例 TIPS 例外処理含む評価パターンを追加 import pprint, sys, time import ite...
タスク概要 Secret Number コード実装例 TIPS 例外処理含む評価パターンを追加 import pprint, sys, time, re def core(arg, adv=Tr...
タスク概要 Card Game コード実装例 TIPS 例外処理含む評価パターンを追加 import pprint, sys, time def core(arg, adv=True, n_ca...
タスク概要 The Number of Area コード実装例 TIPS 例外処理含む評価パターンを追加 import pprint, sys, time def core(arg, adv=T...
タスク概要 Goldbach's Conjecture コード実装例 TIPS 例外処理含む評価パターンを追加 import pprint, sys, time import sympy def...
タスク概要 Sequence コード実装例 TIPS 例外処理含む評価パターンを追加 計算誤差比較例を追加 import pprint, sys, time def core(arg, adv=...
タスク概要 Sum of Nth decimal places コード実装例 TIPS 例外処理含む評価パターンを追加 小数値入力を考慮 import pprint, sys, time def...
タスク概要 Sum of Nth decimal places コード実装例 TIPS 例外処理含む評価パターンを追加 素数5に着目し高速化 import pprint, sys, time i...
タスク概要 Differential II コード実装例 TIPS 例外処理含む評価パターンを追加 入力値の小数対応 import pprint, sys, time import iterto...
タスク概要 Prime Number II コード実装例 TIPS 例外処理含む評価パターンを追加 入力値自体が素数にその旨出力 出力数をパラメータ変数指定し調整可能に import pprin...
概要 Sum of 4 Integers コード TIPS:オペランド定義域を可変化 import itertools def calc_num_opr(sm, inf=0, sup=10): ...
概要 A Thief コード TIPS:ビット演算での探索パターン制御 def ret_value_weight_items(items, w_limit=-1): items = sorted...
概要 Expression コード TIPS:再帰処理により可変長引数に対応 import itertools def apply_op(op, args): a, b = args[:2] i...
概要 Affine Cipher コード 空白文字に定数-1を割り付け def char2int(data, inv=False): c_seq = "abcdefghijklmnopqrstu...
概要 Roman Figure コード 補助記号Zを使用 def roman_to_alabia(c): dict_r2a = { "Z": 0, "I": 1, "V": 5, "X": 10...
概要 A Figure on Surface コード itertoolsを使用 import itertools def matched(area, ptn): #print(area) ret...
概要 Volume0-0029 English Sentence コード from collections import Counter def ret_words(str): ss = str...
18 search resultsShowing 1~18 results
Qiita is a knowledge sharing service for engineers.