結果
問題 | No.331 CodeRunnerでやれ |
ユーザー |
|
提出日時 | 2015-12-24 04:02:16 |
言語 | Ruby (3.4.1) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 1,212 bytes |
コンパイル時間 | 254 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 98,568 KB |
平均クエリ数 | 0.06 |
最終ジャッジ日時 | 2024-07-16 22:34:18 |
合計ジャッジ時間 | 7,673 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 1 |
other | AC * 1 -- * 15 |
ソースコード
#! ruby# yukicoder My Practice# author: Leonardone @ NEETSDKASU############################################################def gs() gets.chomp enddef gi() gets.to_i enddef gf() gets.to_f enddef gss() gs.split enddef gis() gss.map(&:to_i) enddef gfs() gss.map(&:to_f) enddef nmapf(n,f) n.times.map{ __send__ f } enddef ngs(n) nmapf n,:gs enddef ngi(n) nmapf n,:gi enddef ngss(n) nmapf n,:gss enddef ngis(n) nmapf n,:gis enddef arr2d(h,w,v=0) h.times.map{[v] * w} enddef for2p(hr,wr,&pr) hr.each{|i|wr.each{|j| yield(i,j)}} enddef nsum(n) n * (n + 1) / 2 enddef vcount(d,r=Hash.new(0)) d.inject(r){|r,e| r[e]+=1;r} end############################################################t = 0loop {s = STDIN.getsbreak if s[0] == "M"if s.size > 2STDOUT.puts "F"elsed = s.to_icase twhen 0if d == 0puts "R"elseputs "F"t = 1endwhen 1puts "R"t = 2when 2if d == 0puts "L"elseputs "F"endt = 0endendSTDOUT.flush}