結果

問題 No.1020 Reverse
コンテスト
ユーザー ikd
提出日時 2020-04-12 11:18:30
言語 Nim
(2.2.8)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 231 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,348 ms
コンパイル使用メモリ 66,800 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-10 07:49:12
合計ジャッジ時間 4,344 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import strutils

let read = iterator: string {.closure.} =
  while true:
    for s in stdin.readLine.split:
      yield s

proc main() =
  let
    n, k = read().parseInt
    s = read()
  echo s[(k - 1)..<n] & s[0..<(k - 1)]

main()
0