A. Who is the winner? time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output A big marathon is held on Al-Maza Road, Damascus. Runners came from all over the world to run all the way along the road…
D - Time to go back Gym - 100952D http://codeforces.com/gym/100952/problem/D D. Time to go back time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You have been out of Syria for a long time, a…
http://codeforces.com/gym/100952/problem/H H. Special Palindrome time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output A sequence of positive and non-zero integers called palindromic if it can be…
http://codeforces.com/gym/100952/problem/G G. The jar of divisors time limit per test 2 seconds memory limit per test 64 megabytes input standard input output standard output Alice and Bob play the following game. They choose a number N to play with.…
http://codeforces.com/gym/100952/problem/F F. Contestants Ranking time limit per test 1 second memory limit per test 24 megabytes input standard input output standard output Ahmad is one of the best students in HIAST, and also a very good problems So…
http://codeforces.com/gym/100952/problem/D D. Time to go back time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You have been out of Syria for a long time, and you recently decided to come ba…
http://codeforces.com/gym/100952/problem/C C. Palindrome Again !! time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output Given string with N characters, your task is to transform it to a palindrome…
题 题意 解题数目越多越排前,解题数目相同罚时越少越排前,求排第一的队伍名字. 分析 用结构体排序. 代码 #include<cstdio> #include<algorithm> using namespace std; struct team { char name[25]; int s,p; } a[105]; int t,n; int cmp(team a,team b) { return a.s>b.s||a.s==b.s&&a.p<b.p;…
B. New Job time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output This is the first day for you at your new job and your boss asks you to copy some files from one computer to other computers in an…