AtCoder Beginner Contest 004

Submission #3726613

Source codeソースコード

import strutils
import sequtils
import algorithm
import math
import sets
import macros

proc readString*(): string =
  stdin.readLine()
proc readStrings*(): seq[string] =
  stdin.readLine().split()
proc readInt*(): int =
  stdin.readLine().parseInt
proc readInts*(): seq[int] =
  stdin.readLine().split().map(parseInt)
proc readFloat*(): float =
  stdin.readLine().parseFloat
proc readFloats*(): seq[float] =
  stdin.readLine().split().map(parseFloat)

template times*(n: int, body: untyped): untyped =
  (for _ in 0..<n: body)

macro unpack*(rhs: seq, cnt: static[int]): auto =
  let t = genSym(); result = quote do:(let `t` = `rhs`;())
  for i in 0..<cnt: result[0][1].add(quote do:`t`[`i`])

# --------------------------------------------------- #

var C = newSeq[string](4)

for i in 0..3:
  C[i] = readString()
  C[i].reverse
C.reverse

for i in C:
  echo i

Submission

Task問題 B - 回転
User nameユーザ名 nadeshino
Created time投稿日時
Language言語 Nim (0.13.0)
Status状態 AC
Score得点 100
Source lengthソースコード長 899 Byte
File nameファイル名
Exec time実行時間 1 ms
Memory usageメモリ使用量 256 KB

Compiler messageコンパイルメッセージ

Hint: system [Processing]
Hint: Main [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: sequtils [Processing]
Hint: algorithm [Processing]
Hint: math [Processing]
Hint: times [Processing]
Hint: sets [Processing]
Hint: os [Processing]
Hint: posix [Processing]
Hint: hashes [Processing]
Hint: etcpriv [Processing]
Hint: macros [Processing]
Hint: [Link]
Hint: operation successful (22996 lines compiled; 1.994 sec total; 20.209MB; Release Build) [SuccessX]

Test case

Set

Set name Score得点 / Max score Cases
All 100 / 100 00_sample_00.txt,00_sample_01.txt,01_all_dot.txt,02_all_o.txt,03_all_x.txt,rand_0.txt,rand_1.txt,rand_10.txt,rand_11.txt,rand_12.txt,rand_13.txt,rand_14.txt,rand_15.txt,rand_16.txt,rand_17.txt,rand_18.txt,rand_19.txt,rand_2.txt,rand_20.txt,rand_21.txt,rand_22.txt,rand_23.txt,rand_24.txt,rand_3.txt,rand_4.txt,rand_5.txt,rand_6.txt,rand_7.txt,rand_8.txt,rand_9.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
00_sample_00.txt AC 1 ms 256 KB
00_sample_01.txt AC 1 ms 256 KB
01_all_dot.txt AC 1 ms 256 KB
02_all_o.txt AC 1 ms 256 KB
03_all_x.txt AC 1 ms 256 KB
rand_0.txt AC 1 ms 256 KB
rand_1.txt AC 1 ms 256 KB
rand_10.txt AC 1 ms 256 KB
rand_11.txt AC 1 ms 256 KB
rand_12.txt AC 1 ms 256 KB
rand_13.txt AC 1 ms 256 KB
rand_14.txt AC 1 ms 256 KB
rand_15.txt AC 1 ms 256 KB
rand_16.txt AC 1 ms 256 KB
rand_17.txt AC 1 ms 256 KB
rand_18.txt AC 1 ms 256 KB
rand_19.txt AC 1 ms 256 KB
rand_2.txt AC 1 ms 256 KB
rand_20.txt AC 1 ms 256 KB
rand_21.txt AC 1 ms 256 KB
rand_22.txt AC 1 ms 256 KB
rand_23.txt AC 1 ms 256 KB
rand_24.txt AC 1 ms 256 KB
rand_3.txt AC 1 ms 256 KB
rand_4.txt AC 1 ms 256 KB
rand_5.txt AC 1 ms 256 KB
rand_6.txt AC 1 ms 256 KB
rand_7.txt AC 1 ms 256 KB
rand_8.txt AC 1 ms 256 KB
rand_9.txt AC 1 ms 256 KB