結果

問題 No.1020 Reverse
ユーザー Keisuke KubotaKeisuke Kubota
提出日時 2020-04-10 22:37:45
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 16,288 ms
コンパイル使用メモリ 211,312 KB
実行使用メモリ 5,612 KB
最終ジャッジ日時 2023-10-14 01:30:02
合計ジャッジ時間 15,765 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,352 KB
testcase_02 AC 1 ms
4,352 KB
testcase_03 WA -
testcase_04 AC 1 ms
4,372 KB
testcase_05 AC 2 ms
4,480 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 156 ms
5,604 KB
testcase_09 AC 131 ms
5,600 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 202 ms
5,608 KB
testcase_13 AC 200 ms
5,608 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 187 ms
5,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
  "fmt"
)

func main() {
  var (
    n,k int
    str string
  )
  fmt.Scan(&n)
  fmt.Scan(&k)
  fmt.Scan(&str)
  // if n==k {
  //   for i:=n; i>0; i-- {
  //     fmt.Print(str[i-1:i])
  //   }
  // } else {
    fmt.Println(str[k-1:]+str[:k-1])
  // }
}
0