Problems from Inter University Girls' Programming Contest Season 2 Mock

These problems are from a contest hosted on . See details...

A. Like Old Times Again

Do you remember Lee? He was the only superhuman having the superpower of time traveling. A few years...

B. Gauss - The Great Mathematician

Carl Friedrich Gauss was a great mathematician. When he was a child, his teacher told him to sum up ...

C. For Loop FTW

You are given an integer N which can be represnted as the product of two positive integers. N=a1∗a2 ...

D. Think Positive

The greatest thieves of the Universe Tuki and Zha are finally captured and to punish them the scienc...

E. XOR on Pascal

Let's define F(N)F(N)F(N) as following: F(N)=(N0)⊕(N1)⊕(N2)⊕⋯⊕(NN)F(N) = \binom{N}{0} \oplus \binom{...

F. Niko Plays PUBG

Gone are those days when Niko used to be a noob PUBG player. Now he gets “Chicken Dinner” every now ...

G. Potato

Every weekend, Potato becomes a couch potato and spends the whole time at home. Now, he got bored of...

H. Find NSUPS

Given a string s, find the number of subsequence in s which forms the word &quot;NSUPS&quot;. A subs...

I. Robin Sparkles

Robin Sparkle went to the mall one day. While shopping, she remembered that she has a homework due t...

J. Man in the Queue

You are in charge of Khakha Bank Bashundhara Branch. Your branch has only one desk to serve the cust...

K. Bakana

Given four positive integers N,a,b,MN, a, b, MN,a,b,M, find the value of GCD(Na−1,Nb−1)GCD(N^a-1, N^...

L. Magical Pascal

Given an integer N{N}N, find the number of elements which are even in the first N{N}N rows of the Pa...

Practice Contest

Practice contests allow you to re-run contests and experience them as close as possible to the original run.