結果
問題 |
No.3274 Arithmetic Right Shift
|
ユーザー |
👑 |
提出日時 | 2024-09-28 03:55:53 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 333 bytes |
コンパイル時間 | 840 ms |
コンパイル使用メモリ | 81,076 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-09-30 04:03:35 |
合計ジャッジ時間 | 3,066 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 TLE * 1 -- * 2 |
ソースコード
#include <iostream> #include <string> void solve() { int K; std::string S; std::cin >> K >> S; for (int i = 0; i < K; i++) { S = S[0] + S; S.pop_back(); } std::cout << S << std::endl; } int main() { int t; std::cin >> t; for (int i = 0; i < t; i++) { solve(); } }