結果
| 問題 |
No.570 3人兄弟(その1)
|
| コンテスト | |
| ユーザー |
muu16
|
| 提出日時 | 2018-09-01 14:58:47 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 523 bytes |
| コンパイル時間 | 208 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-09-18 18:27:36 |
| 合計ジャッジ時間 | 1,774 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 5 |
コンパイルメッセージ
Syntax OK
ソースコード
abc = gets.chomp.to_i abc1 = gets.chomp.to_i abc2 = gets.chomp.to_i akun = abc bkun = abc1 ckun = abc2 d = [akun,bkun,ckun] e = d.sort.reverse if d.index(e[0]) == 0 then puts "a" end if d.index(e[0]) == 1 then puts "b" end if d.index(e[0]) == 2 then puts "c" end if d.index(e[1]) == 0 then puts "a" end if d.index(e[1]) == 1 then puts "b" end if d.index(e[1]) == 2 then puts "c" end if d.index(e[2]) == 0 then puts "a" end if d.index(e[2]) == 1 then puts "b" end if d.index(e[2]) == 2 then puts "c" end
muu16