結果

問題 No.400 鏡
ユーザー waowao
提出日時 2017-02-23 14:40:58
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 151 bytes
コンパイル時間 388 ms
コンパイル使用メモリ 11,508 KB
実行使用メモリ 15,328 KB
最終ジャッジ日時 2023-08-30 21:24:23
合計ジャッジ時間 1,848 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,208 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 80 ms
15,000 KB
testcase_05 AC 79 ms
15,020 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 79 ms
15,256 KB
testcase_11 AC 78 ms
15,004 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a = gets.chomp
b = a.split("")
c = b.length
c.times do |c|
  if b[c] == "<"
    b[c] = ">"
  elsif b[c] = ">"
    b[c] = "<"
  end
end

puts b.join("")
0