Competitive Programming with Python3

If you want to hone your programming skills in python and improve your performance in competitive programming platforms, then this is the destination you are looking for. Happy Coding!!!

Pages

  • Home
  • SPOJ solutions
  • HackerRank solutions
  • HackerEarth Solutions

Tuesday, July 17, 2018

MAXGRITH - Maximum Girth : Classical

#The solution in Python3 is as follows:


for _ in range(int(input())):
n = int(input())
print ((((n+1)*2)//3) % 1000000007)


#Keep visiting for more solutions of SPOJ problems in Python 3.Thank you!!!
Posted by Subhakanta Sahoo at 12:04 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: SPOJ solutions
Newer Post Older Post Home

Total Pageviews

Search This Blog

Blog Archive

  • ►  2020 (5)
    • ►  April (4)
    • ►  February (1)
  • ▼  2018 (57)
    • ►  September (1)
    • ►  August (5)
    • ▼  July (18)
      • Last Occurrence : Algorithms - Searching - Linear ...
      • Cats and a Mouse : Algorithms - Implementation
      • Counting Valleys : Algorithms - Implementation
      • Utopian Tree : Algorithms - Implementation
      • MAXGRITH - Maximum Girth : Classical
      • The Hurdle Race : Algorithms - Implementation
      • Designer PDF Viewer : Algorithms - Implementation
      • Angry Professor : Algorithms - Implementation
      • Soft Sort : Basic Programming - Implementation - B...
      • Little Jhool and psychic powers : Basic Programmin...
      • Roy and Wobbly Numbers : Practice - Math
      • Beautiful Days at the Movies : Algorithms-Implemen...
      • EC_CONB - Even Numbers : Classical
      • SYNC13C - WHAT A CO-ACCIDENT : Classical
      • HANGOVER - Hangover : Classical
      • MIRRORED - Mirrored Pairs : Tutorial
      • GERGOVIA - Wine trading in Gergovia : Classical
      • VHELSING - Van Helsings gun : Classical
    • ►  June (25)
    • ►  May (8)

About Me

Subhakanta Sahoo
View my complete profile
Theme images by Roofoo. Powered by Blogger.