4
获取吸气剂
任务 我想每个人都喜欢自动代码生成并节省工作时间。您白天必须创建许多类和成员,而又不想getters手动创建所有这些类和成员。 任务是编写一个程序或函数,该程序或函数getters将为您自动为所有类成员生成。 输入 在我们的语言中,对象非常简单。类和成员的名称必须以字符开头,[a-zA-Z]并且只能包含字符[a-zA-Z0-9]。这是一个例子: class Stack { public overflow; protected trace; private errorReport; } 输出 这是基于给定示例的有效输出: class Stack { public overflow; protected trace; private errorReport; public function getOverflow() { return this->overflow; } public function getTrace() { return this->trace; } public function getErrorReport() { return this->errorReport; } } 吸气剂 getter方法的要求是: …
13
code-golf
string
syntax
code-golf
math
primes
rational-numbers
code-golf
graphical-output
image-processing
code-golf
kolmogorov-complexity
music
audio
code-golf
string
code-golf
math
geometry
code-golf
math
sequence
combinatorics
code-golf
game
grid
board-game
code-golf
restricted-source
array-manipulation
source-layout
code-golf
base-conversion
binary
code-golf
math
physics
code-golf
math
number
date
expression-building
code-golf
array-manipulation
graph-theory
decision-problem
popularity-contest
error-correction
code-golf
kolmogorov-complexity
geometry
grid
code-challenge
arithmetic
combinatorics
set-partitions
code-golf
kolmogorov-complexity
sequence
fibonacci
code-golf
restricted-source
pristine-programming
code-golf
code-golf
string
kolmogorov-complexity
code-golf
arithmetic
code-golf
string
parsing
code-golf
code-golf
sorting
counting
permutations
3d
code-golf
code-golf
ascii-art
music
code-golf
string
code-golf
string
ascii-art
code-golf
string
code-golf
quine
polyglot
code-golf
math
string
code-golf
internet