結果
問題 | No.201 yukicoderじゃんけん |
ユーザー |
![]() |
提出日時 | 2017-08-29 20:49:40 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 91 ms / 5,000 ms |
コード長 | 114 bytes |
コンパイル時間 | 153 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-06 09:44:21 |
合計ジャッジ時間 | 2,714 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
コンパイルメッセージ
Main.rb:5: warning: ambiguous first argument; put parentheses or a space even after `-' operator Syntax OK
ソースコード
s1, p1 = gets.split s2, p2 = gets.split case p1.to_i <=> p2.to_i when 0 p -1 when 1 puts s1 else puts s2 end