Skip to content

hunterz-killer/PSAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

PSAT

PSAT Solved Programs List

S No CF Question Title Solution Link
1 https://codeforces.com/problemset/problem/4/A Watermelon Solution
2 https://codeforces.com/problemset/problem/50/A Domino piling Solution
3 https://codeforces.com/problemset/problem/59/A Word Solution
4 https://codeforces.com/problemset/problem/96/A Football Solution
5 https://codeforces.com/problemset/problem/231/A Team Solution
6 https://codeforces.com/problemset/problem/236/A Boy or girl Solution
7 https://codeforces.com/problemset/problem/365/A Good number Solution
8 https://codeforces.com/problemset/problem/427/A Police Solution
9 https://codeforces.com/problemset/problem/617/A Elephant Solution
10 https://codeforces.com/problemset/problem/754/A Lesha Solution
11 https://codeforces.com/problemset/problem/791/A Bear Solution
12 https://codeforces.com/problemset/problem/798/A Mike Solution
13 https://codeforces.com/problemset/problem/831/A Unimodal Solution
14 https://codeforces.com/problemset/problem/935/A Fafa Solution
15 https://codeforces.com/problemset/problem/954/A Diagonal Solution
16 https://codeforces.com/problemset/problem/1008/A Romaji Solution
17 https://codeforces.com/problemset/problem/1017/A Rank Solution
18 https://codeforces.com/problemset/problem/1030/A Easy problem Solution
19 https://codeforces.com/problemset/problem/1031/A Golden Plate Solution
20 https://codeforces.com/problemset/problem/1061/A Coins Solution
21 https://codeforces.com/problemset/problem/1076/A Minimize Solution
22 https://codeforces.com/problemset/problem/1077/A Frog Jump Solution
23 https://codeforces.com/problemset/problem/1088/A Ehab & another construction Solution
24 https://codeforces.com/problemset/problem/1093/A Dice Solution
25 https://codeforces.com/problemset/problem/1095/A Repeat Solution
26 https://codeforces.com/problemset/problem/1111/A Superhero Solution
27 https://codeforces.com/problemset/problem/1146/A Love 'A' Solution
28 https://codeforces.com/problemset/problem/1335/A Candies Solution
29 https://codeforces.com/problemset/problem/1351/A A+B (Trial Problem) Solution
30 https://codeforces.com/problemset/problem/1511/A Review Solution
31 https://codeforces.com/problemset/problem/1512/A Spy Solution
32 https://codeforces.com/problemset/problem/1593/A Elections Solution

Mock Exam Solutions

The Winner

for _ in range(int(input())):
    a, b = map(int, input().split())
    if a>b:
        print("A", a-b)
    else:
        print("B", b-a)

Odd Divisible

n, k = map(int, input().split())
res = 0
for i in range(k,n,k):
    if i%2!=0:
        res+=1
        
print(res)

Increasing Digits

ui = int(input())
if len(str(ui))==1:
    print("YES")

elif str(ui).count(str(ui)[0]) != len(str(ui)):
    req = list(map(str, str(ui).strip()))
    req.sort(reverse=True)


    req = "".join(req)

    if str(ui) == req:
        print("YES")
    else:
        print("NO")
else:
    print("NO")

Strange Grid Again

def strangeGrid(r, c):
    d,m = divmod(r-1,2)
    a = d*10+2*c
    a -= 1 if m else 2
    return a

r,c = map(int,input().split())
print(strangeGrid(r, c))

Palindrome

a , b = map(str, input().split())
r_b = b[::-1]
res = "YES"
for x in range(min(len(a), len(b))):
    if a[x]!=r_b[x]:
        res = "NO"
        break
print(res)

About

PSAT Solved Programs List

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published