原创 Code force-CodeCraft-20 (Div. 2) D. Nash Matrix 詳解(DFS構造)

D. Nash Matrix time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard o

原创 Codeforce-Ozon Tech Challenge 2020-D. Kuroni and the Celebration(交互題+DFS)

After getting AC after 13 Time Limit Exceeded verdicts on a geometry problem, Kuroni went to an Italian restaurant

原创 Codeforce-Ozon Tech Challenge 2020-C. Kuroni and Impossible Calculation(鴿籠原理)

To become the king of Codeforces, Kuroni has to solve the following problem. He is given n numbers a1,a2,…,an. Help

原创 Codeforce-CodeCraft-20 (Div. 2)-C. Primitive Primes(數學推導)

It is Professor R’s last class of his teaching career. Every time Professor R taught a class, he gave a special pro

原创 數學--數論--歐拉降冪和廣義歐拉降冪(實用好理解)

一般大佬會給你證明,而菜鳥會教你怎麼使用。 先擺上公式: ab≡{abmodϕ(p)gcd(a,p)=1abgcd(a,p)≠1,b<ϕ(p)abmodϕ(p)+ϕ(p)gcd(a,p)≠1,b≥ϕ(p)    (modp)a^{

原创 數學--數論--歐拉降冪--P5091 歐拉定理

題目背景 出題人也想寫有趣的題面,可惜並沒有能力。 題目描述 給你三個正整數,a,m,ba,m,ba,m,b,你需要求:ab mod ma^b \bmod mabmodm 輸入格式 一行三個整數,a,m,ba,m,ba,m,b

原创 codeforces 1287A -Angry Students(模擬)

It’s a walking tour day in SIS.Winter, so t groups of students are visiting Torzhok. Streets of Torzhok are so narr

原创 CF思維聯繫– CodeForces - 991C Candies(二分)

ACM思維題訓練集合 After passing a test, Vasya got himself a box of n candies. He decided to eat an equal amount of candies

原创 CF思維聯繫– Codeforces-990C Bracket Sequences Concatenation Problem(括號匹配+模擬)

A bracket sequence is a string containing only characters “(” and “)”. A regular bracket sequence is a bracket sequ

原创 數學--數論-- AtCoder Beginner Contest 151(組合數+數學推導)好題(๑•̀ㅂ•́)و✧

思路統計最大值出現的次數,和最小值出現的次數。雖然是每次都是MAX-MIN,我們先求MAX的和,然後再求MIN的和,做差。 這次代碼寫的真的很漂亮 題目地址: #include <bits/stdc++.h> using na

原创 CF思維聯繫– Codeforces-988C Equal Sums (哈希)

You are given k sequences of integers. The length of the i-th sequence equals to ni. You have to choose exactly tw

原创 Eclipse 全部快捷一覽表(具TM全)

1. 編輯快捷鍵 編輯快捷鍵 介紹 psvm + Tab 生成main方法 sout + tab 生成輸出語句 Ctrl+X / Ctrl + Y 刪除一行 Ctrl+D 複製一行 Ctrl+/ 或

原创 計算機組成原理--計算機性能指標(附考研題目)

一、計算機性能指標: CPU:吞吐量,響應時間,CPU時鐘週期,主頻,CPI,CPU執行時間,MIPS,MFLOPS,GFLOPS,TFLOPS,PFLOPS,利用率,處理機字長; 其他:總線寬度。 1.吞吐量 一個系統的吞度量(

原创 階段總結

文章目錄2020.2.28總結 2020.2.28總結 最近做題的感覺又回來了,等我長長情緒就回去接着甘數學,最近做DP的感覺很好,可能是因爲學數學的思維有所提升的原因,但是做數學之後因爲代碼敲得少了,導致簽到題一直調不出來,思路

原创 CF思維聯繫–CodeForces - 225C. Barcode(二路動態規劃)

Desciption You’ve got an n × m pixel picture. Each pixel can be white or black. Your task is to change the colors o