oj mrJudge
Toggle navigation
  • Login
    • Forget Password
      Login
User Image

Hello, Stranger

Guest
  • Analysis Mode
  • Problems
    • All Problems
    • Latest Problems
  • Join Us Now
  • Registration
  • Contact Us
  • Infomation
  • About
    • Terms of Use
    • Technical Specifications
    • Credits

diamond Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

diamond.html

Sometimes, even more bored coders like to do really really boring things like outputting diamonds of asterisks. Beautiful, but lame. Hubert is one such lame lame coder.

Input

A number 0 < n ≤ 30 representing the maximum radius of the diamond.

Output

A diamond of asterisks with radius n. Note that the diamond is put into place via spaces in front. There are no spaces after each line.

Sample Input 1

4

Sample Output 1

   *
  ***
 *****
*******
 *****
  ***
   *

Tags

Syntax

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
1100301s32MBAverage
2011s32MBAverage

Judge Compile Command

g++-8 ans.cpp -o diamond -Wall -Wshadow -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512

Accepted Submissions

subIDUserTimeMax Time

Past Submissions

subIDUserTimeScore
mrJudge 09.05.20
Copyright © 2020 mrJudge. All rights reserved.