結果
問題 |
No.18 うーさー暗号
|
ユーザー |
![]() |
提出日時 | 2017-06-22 20:44:07 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 242 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 29,056 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-02 12:20:26 |
合計ジャッジ時間 | 728 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 8 |
ソースコード
#include <stdio.h> #include <string.h> int main(void){ char s[1030]; scanf("%s", s); int len = strlen(s); for(int i = 1; i <= len; i++){ s[i-1] = s[i-1]-i; while(s[i-1] < 'A'){ s[i-1] += 26; } } printf("%s\n", s); return 0; }