結果
| 問題 | No.18 うーさー暗号 |
| コンテスト | |
| ユーザー |
Respect2D
|
| 提出日時 | 2014-11-21 00:49:28 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 295 bytes |
| 記録 | |
| コンパイル時間 | 689 ms |
| コンパイル使用メモリ | 72,024 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-28 20:32:43 |
| 合計ジャッジ時間 | 6,343 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#include <iostream>
using namespace std;
int main(){
string s;
while(cin >> s){
for(int i = 0; i < s.size(); i++){
int add = ((i + 1) / 26 + 1) * 26;
int pos = (s[i] - 'A' - (i + 1) + add) % 26;
cout << (char)('A' + pos);
}
cout << endl;
}
}
Respect2D