LoginSignup
1
1

More than 5 years have passed since last update.

Rubotyでwandboxの採点を行う

Last updated at Posted at 2014-12-18

URL

Config

  • WANDBOX_BASE: Wandboxのベース。
    • 指定がなければhttp://melpon.org/wandbox/
    • 最初のhttp://は必要。最後のスラッシュはあってもなくても良い。

Usage

  • /wandbox list/

コンパイラ一覧を返す。

gcc-head: warning,optimize,cpp-verbose,boost-nothing,boost-1.47,boost-1.48,boost-1.49,boost-1.50,boost-1.51,boost-1.52,boost-1.53,boost-1.54,boost-1.55,boost-1.56,sprout,c++98,gnu++98,c++11,gnu++11,c++1y,gnu++1y
(snip)
  • /wandbox setinput ?(?<input_uri>\S*)/

stdinを保存する。
input_uri: 入力ファイル(空文字列ならクリア)
open-uriなKernel.openを使うので、入力ファイルはhttp://も指定できる。以下同様。

  • /wandbox submit (?<language>\S+) (?<source_uri>\S+) ?(?<input_uri>\S*)/

language: コンパイラID,オプションID(カンマ区切り)。それぞれ完全一致でなければならない。
source_uri: ソースファイル
input_uri: 入力ファイル(空文字列ならsetinputの内容を使用)

  • /wandbox view ?(?<id>\w*)/

id: wandbox ID(空文字列なら直前のsubmitで返されたIDを使用 ※現在permlinkを保存しない設定なので特に意味は無い)

Example

  • First
$ ruboty
> ruboty wandbox view geELii9xq6Tpxqit
GNU C Library (Ubuntu EGLIBC 2.15-0ubuntu10.9) stable release version 2.15, by Roland McGrath et al.
(snip)
> ruboty wandbox list
gcc-head: warning,optimize,cpp-verbose,boost-nothing,boost-1.47,boost-1.48,boost-1.49,boost-1.50,boost-1.51,boost-1.52,boost-1.53,boost-1.54,boost-1.55,boost-1.56,sprout,c++98,gnu++98,c++11,gnu++11,c++1y,gnu++1y
(snip)
elixir-head: 
(snip)
groovy-2.2.1: 
  • LazyK Test
> ruboty wandbox submit lazyk https://raw.githubusercontent.com/cielavenir/codeiq_solutions/master/q801/girl.lazy
ガールフレンドめっちゃほしい!
  • Elixir Test
> ruboty wandbox setinput https://raw.githubusercontent.com/cielavenir/procon/master/A
Input set.
> ruboty wandbox submit elixir-head https://raw.githubusercontent.com/cielavenir/procon/master/tyama_icpc2007dA.ex
504
473
518
638
507
538
> exit
  • C++ Test
> ruboty wandbox setinput https://raw.githubusercontent.com/cielavenir/procon/master/rosalind_io/rosalind_gaff.txt
Input set.
> ruboty wandbox submit gcc-head https://raw.githubusercontent.com/cielavenir/procon/7c42add113c3bdbd276c00916ca309987e173cca/rosalind/tyama_rosalindGLOB-rosalindGCON-rosalindGAFF-rosalindLOCA.cpp

(NOTE: possibly compiler error because of C++11 code)
> ruboty wandbox submit gcc-head,c++11 https://raw.githubusercontent.com/cielavenir/procon/7c42add113c3bdbd276c00916ca309987e173cca/rosalind/tyama_rosalindGLOB-rosalindGCON-rosalindGAFF-rosalindLOCA.cpp
303
LQPEMRYYPWTWRDLRCTRFQEVQCKG---------LRQQDVRFTVLKTTGSCNQFVEQREGNSLTNA-------HRFERESCVNWETEHVFFMTHWENMGNEF
LQPEMRYYPWTWSDLRCTRFQEVQIRSQAKGRMRKLFRQQDVRFTV--------QFV-------LTNAIPKEPGQFRFERESCVNWETEHVFFMTHWCNMGNEF
  • stakemura氏サーバーテスト
$ WANDBOX_BASE=http://apex.cloudapp.net/wandbox ruboty
> ruboty wandbox list
gcc-head: c++98,gnu++98,c++11,gnu++11,c++1y,gnu++1y
gcc-4.8.2-c: c89,c99,c11
(snip)
> exit
$
1
1
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
1