
CF
文章平均质量分 80
_FSMM
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【CodeForces 778A】String Game(二分)
A. String Gametime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputLittle Nastya has a hobby, she likes to remove原创 2017-02-27 19:24:15 · 366 阅读 · 0 评论 -
【CodeForces 797A】k-Factorization(分解质因数)
A. k-Factorizationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGiven a positive integer n, find k integers原创 2017-05-02 21:33:41 · 595 阅读 · 0 评论 -
【CodeForces 803B】Distances to Zero(模拟)
B. Distances to Zerotime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given the array of int原创 2017-05-02 00:06:20 · 554 阅读 · 0 评论 -
【CodeForces 765D】 Artsem and Saunders(数学,构造)
D. Artsem and Saunderstime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputArtsem has a friend Saunders fro原创 2017-03-24 20:26:21 · 434 阅读 · 0 评论 -
【CodeForces 333A】Secrets(模拟)
A. Secretstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputGerald has been selling state secrets at leis原创 2017-03-10 21:46:45 · 332 阅读 · 0 评论 -
【CodeForces 219B】Special Offer! Super Price 999 Bourles
B. Special Offer! Super Price 999 Bourles!time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarpus is原创 2017-03-15 12:06:41 · 669 阅读 · 0 评论 -
【CodeForces 159C】String Manipulation 1.0(字符串处理)
C. String Manipulation 1.0time limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne popular website developed an u原创 2017-03-22 11:54:23 · 554 阅读 · 0 评论 -
【CodeForces 632B】 Alice, Bob, Two Teams(暴力)
B. Alice, Bob, Two Teamstime limit per test1.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice and Bob are playing a game.原创 2017-03-21 14:31:49 · 330 阅读 · 0 评论 -
【CodeForces 351A】Jeff and Rounding(思维)
A. Jeff and Roundingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputJeff got 2n real numbers a1, a2原创 2017-03-21 14:26:48 · 374 阅读 · 0 评论 -
【CodeForces 797B】Odd sum(模拟)
B. Odd sumtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given sequence a1, a2, ..., an of integer原创 2017-05-02 22:17:38 · 755 阅读 · 0 评论 -
【CodeForces 797C】Minimal string(贪心+字符串)
C. Minimal stringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya recieved a gift of a string s with length原创 2017-05-03 07:59:20 · 587 阅读 · 0 评论 -
【Codeforces 900C】Remove Extra One(BIT思维)
C. Remove Extra Onetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a permutation p of length原创 2017-12-13 17:48:29 · 394 阅读 · 0 评论 -
【CodeForces 830A】Office Keys
A. Office Keystime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n people and k keys on a straight li原创 2017-07-24 18:13:18 · 539 阅读 · 0 评论 -
【Codeforces】831C Jury Marks
C. Jury Markstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp watched TV-show where k jury members原创 2017-07-24 15:32:38 · 262 阅读 · 0 评论 -
【CodeForces 804B】Minimum number of steps(思维+数学)
B. Minimum number of stepstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWe have a string of letters 'a' and原创 2017-05-10 08:17:40 · 445 阅读 · 0 评论 -
【CodeForces 796B】Find The Bone
B. Find The Bonetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputZane the wizard is going to perform a magic原创 2017-05-04 18:08:14 · 360 阅读 · 0 评论 -
【CodeForces 792A】New Bus Route
A. New Bus Routetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n cities situated along the main ro原创 2017-05-04 09:23:41 · 417 阅读 · 0 评论 -
【CodeFores 798B】 Mike and strings(模拟+string)
B. Mike and stringstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMike has n strings s1, s2, ..., sn each原创 2017-05-03 21:08:05 · 627 阅读 · 0 评论 -
【CodeForces 803A】Maximal Binary Matrix(模拟)
A. Maximal Binary Matrixtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given matrix with n rows and n co原创 2017-05-03 20:16:56 · 500 阅读 · 0 评论 -
【CodeForces 455A】Boredom(dp)
A. Boredomtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlex doesn't like boredom. That's why whenever he g原创 2017-03-10 21:36:58 · 366 阅读 · 0 评论 -
【CodeForces 476B】 Dreamoon and WiFi(组合概率)
B. Dreamoon and WiFitime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDreamoon is standing at the position原创 2017-03-10 21:28:13 · 624 阅读 · 0 评论 -
【CodeForces 779C】Dishonest Sellers(贪心)
C. Dishonest Sellerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIgor found out discounts in a原创 2017-02-26 18:48:13 · 510 阅读 · 0 评论 -
【CodeForces 779A】Pupils Redistribution(模拟)
A. Pupils RedistributionIn Berland each high school student is characterized by academic performance — integer value between 1 and 5.In high school 0xFF there are two groups of pupil原创 2017-02-26 18:26:19 · 883 阅读 · 0 评论 -
【CodeForces 776B】 Sherlock and his girlfriend (求素数)
Sherlock and his girlfriendSherlock has a new girlfriend (so unlike him!). Valentine's day is coming and he wants to gift her some jewelry.He bought n pieces of jewelry. The i-th piece h原创 2017-02-25 18:33:08 · 628 阅读 · 0 评论 -
【CodeForces 777C】Alyona and Spreadsheet
Alyona and SpreadsheetProblem DescriptionDuringthe lesson small girl Alyona works with one famous spreadsheet computer programand learns how to edit tables.Nowshe has a table filled with integ原创 2017-02-25 09:34:29 · 2275 阅读 · 0 评论 -
【CodeForces 777B】Game of Credit Cards(贪心+排序)
Game of Credit CardsProblem DescriptionAfterthe fourth season Sherlock and Moriary have realized the whole foolishness ofthe battle between them and decided to continue their competiti原创 2017-02-25 09:51:56 · 1388 阅读 · 0 评论 -
【CodeForces 777A】Shell Game(模拟)
Shell GameProblem DescriptionBomboslav likes to look out of the window in his room and watch lads outside playing famous shell game. The game is played by two persons: operator and playe原创 2017-02-25 10:09:39 · 774 阅读 · 0 评论 -
【CodeForces 777D】Cloud of Hashtags (模拟+字符串处理)
题目大意:删除最少的字符使字符串成非递减排列思路:倒着模拟,依次比较删除。(第一次使用了string字符串数组和resize)(get到新技能 #include 万能头函数)#include#define manx 500005using namespace std;int main(){ int n; string s[manx]; cin>>n;原创 2017-02-25 12:31:37 · 508 阅读 · 0 评论 -
【CodeForces 777E】 Hanoi Factory(贪心+sort+模拟)
E. Hanoi Factorytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOf course you have heard the famous task原创 2017-02-25 15:51:06 · 1011 阅读 · 0 评论 -
【CodeForces 282A】Bit++(水~)
A. Bit++time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe classic programming language of Bitland is原创 2017-03-10 19:36:12 · 514 阅读 · 0 评论 -
【CodeForces 282B】Painting Eggs(模拟)
B. Painting Eggstime limit per test5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Bitlandians are quite weird people原创 2017-03-10 19:45:55 · 522 阅读 · 0 评论 -
【CodeForces 555A】Case of Matryoshkas(模拟)
A. Case of Matryoshkastime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndrewid the Android is a galaxy-f原创 2017-03-10 21:13:22 · 422 阅读 · 0 评论 -
【CodeForces 570A】Elections(水)
A. Electionstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe country of Byalechinsk is running elections i原创 2017-03-10 21:04:04 · 383 阅读 · 0 评论 -
【CodeForces 570B】Simple Game(水)
Simple GameOne day Misha and Andrew were playing a very simple game. First, each player chooses an integer in the range from1 to n. Let's assume that Misha chose numberm, and Andrew chose nu原创 2017-03-10 20:58:22 · 299 阅读 · 0 评论 -
【CodeForces 479C】 Exams(排序)
C. Examstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputStudent Valera is an undergraduate student at the Unive原创 2017-03-10 20:46:57 · 385 阅读 · 0 评论 -
【CodeForces 572B】Order Book(排序)
B. Order Booktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this task you need to process a se原创 2017-03-10 20:36:16 · 923 阅读 · 0 评论 -
【CodeForces 572A】Arrays(水)
A. Arraystime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two arrays A and B consisting o原创 2017-03-10 20:26:18 · 302 阅读 · 0 评论 -
【CodeForces 707B】Bakery(暴力)
B. Bakerytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMasha wants to open her own bakery and bake原创 2017-03-10 20:12:12 · 301 阅读 · 0 评论 -
【CodeForces 707A】Brain's Photos(水)
Brain's PhotosSmall, but very brave, mouse Brain was not accepted to summer school of young villains. He was upset and decided to postpone his plans of taking over the world, but to become a pho原创 2017-03-10 19:50:53 · 296 阅读 · 0 评论 -
【Codeforces 983A】Finite or not?(数学)
A. Finite or not?Description求 p / q 的小数部分用 b 进制表示是否是有限小数Input输入n (1 ≤ n ≤ 1e5)n次查询p q b (0 ≤ p ≤ 1e18,1 ≤ q ≤ 1e18,2 ≤ b ≤ 1e18)Output是否为有限小数Sample Input 6 6 12 10 4 3 10 1 1 2 9 36 2 ...原创 2018-05-22 16:40:44 · 476 阅读 · 0 评论