結果
| 問題 | No.3274 Arithmetic Right Shift |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2024-09-28 03:55:53 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 333 bytes |
| 記録 | |
| コンパイル時間 | 1,000 ms |
| コンパイル使用メモリ | 149,572 KB |
| 実行使用メモリ | 19,392 KB |
| 最終ジャッジ日時 | 2026-04-16 09:28:03 |
| 合計ジャッジ時間 | 6,745 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | -- * 5 |
ソースコード
#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();
}
}