传送门:https://abc085.contest.atcoder.jp/tasks/abc085_d 有N把武士刀,对于每一把武士刀,有以下两种攻击方法: ①常规:攻击造成a点damage,可连续多次使用; ②终结:攻击造成b点damage,使用一次后丢弃。 对于每一把武士刀,有a≤b。 为造成至少H点的damage,求最小攻击次数。 设置一个优先队列(用std::priori...
题目链接:https://abc085.contest.atcoder.jp/tasks/abc085_b Time limit : 2sec /Memory limit : 256MB Score :200points Problem Statement AnX-layered kagami mochi(X≥1)is a pile ofXround mochi (rice cake) stacked vertically where each mochi (except the bottom one) has a smaller diameter th...
ABC187C - 1-SAT PythonD - Choose Me Python ABC189C - Mandarin Orange Python ContestA ProblemB ProblemC Problem AGC038A - 01 Matrix Python ContestA ProblemB ProblemC ProblemD ProblemE ProblemF Problem DISCO presents ディスカバリーチャンネル コードコンテスト2020 予選B - Iron Bar Cutting...
Register as a new user and use Qiita more conveniently You get articles that match your needs You can efficiently read back useful information You can use dark theme What you can do with signing up Sign upLogin Comments No comments Let's comment your feelings that are more than good ...
mrashid5919 Add solution for problem C - Illuminate Buildings d527599· Dec 21, 2024 HistoryHistory File metadata and controls Code Blame 58 lines (54 loc) · 1018 Bytes Raw #include<bits/stdc++.h> using namespace std; #define fastio ios::sync_with_stdio(0);cin.tie(0) long long po...
AOJ Course Huge Knapsack Problem (手法の verify に) ABC 032 D ナップサック問題 (例題 2-3-4 のテクも使います) AGC 026 C - String Coloring (半分全列挙と見抜けさえすればという感じです) ARC 017 C 無駄なものが嫌いな人 CODE THANKS FESTIVAL 2017 G Mixture Drug (いわゆる最大...
A - Libra 题目链接:https://abc083.contest.atcoder.jp/tasks/abc083_a Time limit : 2sec /Memory limit : 256MB Score :100points Problem Statement A balance scale tips to the left ifL>R, whereLis the total weight of the masses on the left pan andRis the total weight of the masses on...
令a=(n+m−1)(k−1)a=(n+m−1)(k−1),那么答案一定可以写成xkaxka的形式。发现这玩意非常不友好,就把它写成kk进制,设最后一位不为 0 的是第tt位: 0.s1s2s3⋯st0.s1s2s3⋯st 发现上面这玩意需要满足两个条件: ∑s≡m(mod(k−1))∑s≡m(mod(k−1))。这是因为有进位。
MasterMind90 Add solution for problem C - Welcome to AtCoder a69c669· Jan 15, 2021 HistoryHistory File metadata and controls Code Blame 36 lines (33 loc) · 680 Bytes Raw #include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false) ; cin.tie(0)...
ContestA ProblemB ProblemC Problem AGC038 A - 01 Matrix Python ARC Like ContestContestA ProblemB ProblemC ProblemD ProblemE ProblemF Problem DISCO presents ディスカバリーチャンネル コードコンテスト2020 予選 B - Iron Bar CuttingPython ABC Like Contest...