結果

問題 No.1020 Reverse
ユーザー simansiman
提出日時 2020-07-01 19:21:56
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 78 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 11,544 KB
実行使用メモリ 27,252 KB
最終ジャッジ日時 2023-10-12 02:40:52
合計ジャッジ時間 3,117 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,028 KB
testcase_01 AC 83 ms
15,136 KB
testcase_02 AC 83 ms
15,276 KB
testcase_03 WA -
testcase_04 AC 82 ms
15,284 KB
testcase_05 AC 85 ms
15,028 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 125 ms
24,660 KB
testcase_09 AC 119 ms
22,888 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 134 ms
27,004 KB
testcase_13 AC 135 ms
27,120 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 133 ms
26,300 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N, K = gets.split.map(&:to_i)
S = gets.chomp

puts S.chars.rotate(K - 1).join
0