LoginSignup
1
0

More than 5 years have passed since last update.

Ruby$_の意味と競プロでの実例

Posted at

variable $_
最後に Kernel.#gets または Kernel.#readline で読み込んだ文字列です。

AOJで
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_C

puts eval($_.chomp) while !gets["?"]

参考

次にやること

AOJ解き直す

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0