結果
問題 | No.1217 せしすせそ |
ユーザー |
|
提出日時 | 2020-10-07 13:43:07 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 284 ms |
コンパイル使用メモリ | 22,784 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-20 03:24:54 |
合計ジャッジ時間 | 1,009 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%s",str); | ~~~~~^~~~~~~~~~
ソースコード
#include <cstdio>int main(){const char cstr[27]="abcdefghijklmnopqrstuvwxyz";char str[27];scanf("%s",str);for(int i=0;i<26;i++){if(cstr[i]!=str[i])printf("%cto%c\n",cstr[i],str[i]);}return 0;}