CF-A Terminator
Codeforces是一个很好的竞技编程平台,但一口气吃成大胖子是不可能的,从每一场Contest_Div.2的A题(最简单题)入手,按照codeforces的时间顺序依次来讲每一次的A题,以逐步让大家熟悉CF、提升编程兴趣。若有没能说清楚的地方,请留言告诉我,我会尽快为你解答~
糖果天王
编辑自我介绍~ 才能让更多人了解你…… 哎?真的吗?
展开
-
【数学计算】#88 A. Elevator
A. Elevatortime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnd now the numerous qualifying tournaments for原创 2015-01-30 01:27:37 · 891 阅读 · 0 评论 -
【找最值】#87 A. Tram
A. Tramtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLinear Kingdom has exactly one tram line. It has n原创 2015-01-30 01:07:18 · 832 阅读 · 0 评论 -
【简单演算】#86 A. Cifera
A. Ciferatime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhen Petya went to school, he got interested in l原创 2014-12-15 21:56:10 · 928 阅读 · 0 评论 -
【string比较】#85 A. Petya and Strings
Little Petya loves presents. His mum bought him two strings of the same size for his birthday. The strings consist of uppercase and lowercase Latin letters. Now Petya wants to compare those two strings lexicographically. The letters' case does not matter,原创 2014-11-29 21:32:51 · 1323 阅读 · 0 评论 -
【string】#84 A. Nearly Lucky Number
A. Nearly Lucky Numbertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya loves lucky numbers. We all kn原创 2014-11-29 21:24:33 · 1557 阅读 · 0 评论 -
【水枚举】#83 A. Palindromic Times
Tattah is asleep if and only if Tattah is attending a lecture. This is a well-known formula among Tattah's colleagues.On a Wednesday afternoon, Tattah was attending Professor HH's lecture. At 12:21, right before falling asleep, he was staring at the digit原创 2014-11-29 21:18:02 · 965 阅读 · 0 评论 -
【find】#82 A. Card Game
There is a card game called "Durak", which means "Fool" in Russian. The game is quite popular in the countries that used to form USSR. The problem does not state all the game's rules explicitly — you can find them later yourselves if you want.原创 2014-11-29 20:44:40 · 1046 阅读 · 0 评论 -
【map&pair】#81 A. Transmigration
In Disgaea as in most role-playing games, characters have skills that determine the character's ability to use certain weapons or spells. If the character does not have the necessary skill, he cannot use it. The skill level is represented as an integer tha原创 2014-11-29 20:04:35 · 740 阅读 · 0 评论 -
【题意】#80 A. Blackjack
One rainy gloomy evening when all modules hid in the nearby cafes to drink hot energetic cocktails, the Hexadecimal virus decided to fly over the Mainframe to look for a Great Idea. And she has found one!Why not make her own Codeforces, with blackjack and原创 2014-11-29 18:56:13 · 1340 阅读 · 0 评论 -
【vector】#79 A. Clothes
A little boy Gerald entered a clothes shop and found out something very unpleasant: not all clothes turns out to match. For example, Gerald noticed that he looks rather ridiculous in a smoking suit and a baseball cap.原创 2014-11-29 18:35:06 · 969 阅读 · 0 评论 -
【题意string】#78 A. Help Far Away Kingdom
A. Help Far Away Kingdomtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn a far away kingdom lived the Ki原创 2014-11-28 17:38:35 · 1015 阅读 · 0 评论 -
【水模拟】#77 A. Football
A. Footballtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya loves football very much. One day, as he原创 2014-11-15 23:40:19 · 1753 阅读 · 0 评论 -
【substr】#76 A. Restoring Password
A. Restoring Passwordtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIgor K. always used to trust his favo原创 2014-11-15 21:36:43 · 980 阅读 · 0 评论 -
【巧模拟】#75 A. Chips
A. Chipstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n walruses sitting in a circle. All of t原创 2014-10-29 17:51:49 · 971 阅读 · 0 评论 -
【水模拟】#74 A. Cableway
A. Cablewaytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA group of university students wants to get to原创 2014-10-29 17:35:11 · 1620 阅读 · 3 评论 -
【巧枚举】#73 A. Chord
A. Chordtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya studies music.He has learned lots of int原创 2014-10-27 16:06:20 · 973 阅读 · 0 评论 -
【水推理】#72 A. Toy Army
这已经不能bei'c#include using namespace std;// http://codeforces.com/contest/84// Toy Armyint main(){ int n; cin>>n; cout<<n/2*3; return 0;}原创 2014-10-27 15:24:58 · 809 阅读 · 0 评论 -
【水模拟】#71 A. Bus Game
A. Bus Gametime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter Fox Ciel won an onsite round of a program原创 2014-10-27 15:06:39 · 970 阅读 · 0 评论 -
【getline】#70 A. Haiku
A. Haikutime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputHaiku is a genre of Japanese traditional poetry.原创 2014-10-27 12:26:25 · 837 阅读 · 0 评论 -
【水打表】#69 A. Panoramix's Prediction
#include #include #include #include #include using namespace std;typedef long long ll;// http://codeforces.com/contest/80 // Panoramix's Prediction1 int prime[]={2,3,5,7,11,13,17,19,23,29,原创 2014-10-25 23:30:12 · 1000 阅读 · 0 评论 -
【水】#68 A. Room Leader
A. Room Leadertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet us remind you part of the rules of Codef原创 2014-10-20 17:53:00 · 708 阅读 · 0 评论 -
【水模拟】#67 A. Life Without Zeros
这道题呀,题意是说给你两个数字,如果#include #include #include #include #include using namespace std;typedef long long ll;int del0(int x){ int ret=0,tmp=x,time=1; while(tmp) { int digit=tmp%10; if(di原创 2014-10-20 17:40:12 · 1007 阅读 · 0 评论 -
【贪心】#66 A. The Elder Trolls IV: Oblivon
A. The Elder Trolls IV: Oblivontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya plays The Elder Troll原创 2014-10-10 17:16:46 · 944 阅读 · 0 评论 -
【String】#65 A. Way Too Long Words
A. Way Too Long Wordstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSometimes some words like "localizati原创 2014-10-10 10:56:24 · 987 阅读 · 0 评论 -
【找规律】#64 A. Cookies
A. Cookiestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFangy collects cookies. Once he decided to take原创 2014-10-10 10:47:55 · 749 阅读 · 0 评论 -
【水】#63 A. Young Physicist
A. Young Physicisttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA guy named Vasya attends the final grad原创 2014-10-10 10:35:54 · 1093 阅读 · 0 评论 -
【水模拟】#62 A. Irrational problem
A. Irrational problemtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Petya was given this problem f原创 2014-10-08 23:09:14 · 749 阅读 · 0 评论 -
【水String】#61 A. Petya and Java
A. Petya and Javatime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Petya has recently started attendi原创 2014-10-08 23:07:59 · 740 阅读 · 0 评论 -
【简单数论】#60 A. Harry Potter and Three Spells
A. Harry Potter and Three Spellstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA long time ago (probably原创 2014-08-20 12:09:24 · 838 阅读 · 0 评论 -
【水分类】#59 A. Sinking Ship
A. Sinking Shiptime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe ship crashed into a reef and is sinking原创 2014-08-20 11:58:27 · 1083 阅读 · 0 评论 -
【水值域】#58 A. A Student's Dream
A. A Student's Dreamtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputStatistics claims that students sleep原创 2014-08-20 11:51:13 · 1084 阅读 · 0 评论 -
【^概念】#57 A. Ultra-Fast Mathematician
A. Ultra-Fast Mathematiciantime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputShapur was an extremely gifted原创 2014-08-20 11:41:26 · 826 阅读 · 0 评论 -
【水读入】#56 A. Where Are My Flakes?
A. Where Are My Flakes?time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne morning the Cereal Guy found原创 2014-08-20 11:34:21 · 795 阅读 · 0 评论 -
【水字符】#55 A. Word
A. Wordtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya is very upset that many people on the Net mix原创 2014-08-08 21:23:10 · 1170 阅读 · 0 评论 -
【水模拟】#54 A. Chat room
A. Chat roomtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has recently learned to type and log on原创 2014-08-08 21:09:09 · 1734 阅读 · 0 评论 -
【水讨论】#53 A. Square Earth?
A. Square Earth?time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMeg the Rabbit decided to do something nic原创 2014-08-08 20:43:47 · 963 阅读 · 1 评论 -
【水输入】#52 A. Bar
#include #include #include #include #include using namespace std;string name[11]={"ABSINTH","BEER","BRANDY","CHAMPAGNE","GIN","RUM","SAKE","TEQUILA","VODKA","WHISKEY","WINE"};int main(){ in原创 2014-08-08 19:11:57 · 2867 阅读 · 0 评论 -
【循环数组】#51 A. Flea travel
A. Flea traveltime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA flea is sitting at one of the n hassocks,原创 2014-07-31 10:27:54 · 801 阅读 · 0 评论 -
【水模拟】#50 A. Presents
A. Presentstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Hedgehog likes to give presents to his frie原创 2014-07-31 09:25:54 · 792 阅读 · 0 评论 -
【String数组排序】#49 A. Autocomplete
A. Autocompletetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAutocomplete is a program function that ena原创 2014-07-30 16:54:28 · 741 阅读 · 0 评论