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

octagon Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

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

octagon.html

Problem Description

Quad the Bunny is suddenly fascinated with regular octagons for no apparent reason.

Generate a regular octagon of side N for him before he turns you into carrot stew.

Input

The only line of input will contain one integer, N.

Output

Output a regular octagon of side N. Refer to sample output for more information. Note that there are no trailing spaces after every line.

Limits

Subtask 1 (100%): 1 ≤ N ≤ 30

Subtask 2 (0%): Sample Testcases

Sample Testcase 1

Input

1

Output

*

Sample Testcase 2

Input

2

Output

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

Sample Testcase 3

Input

3

Output

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

Tags

Syntax

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
1100301s32MBMinimum
2031s32MBMinimum

Judge Compile Command

g++-8 ans.cpp -o octagon -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.