結果
| 問題 | No.18 うーさー暗号 |
| コンテスト | |
| ユーザー |
Seto
|
| 提出日時 | 2017-01-15 05:38:01 |
| 言語 | C90 (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 5,000 ms |
| + 741µs | |
| コード長 | 211 bytes |
| 記録 | |
| コンパイル時間 | 51 ms |
| コンパイル使用メモリ | 35,712 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-24 19:50:51 |
| 合計ジャッジ時間 | 1,132 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
コンパイルメッセージ
main.c: In function 'main':
main.c:6:16: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
6 | for(i=0; i < strlen(s); i++){
| ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
1 | #include<stdio.h>
+++ |+#include <string.h>
2 | int main(){
ソースコード
#include<stdio.h>
int main(){
char s[1024 + 1];
int i;
scanf("%s", s);
for(i=0; i < strlen(s); i++){
printf("%c", 'A' + ((s[i] - 'A' + 26) - ((i + 1) % 26)) % 26);
}
putchar('\n');
return 0;
}
Seto