結果
問題 | No.400 鏡 |
ユーザー |
|
提出日時 | 2017-04-20 21:57:00 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 211 bytes |
コンパイル時間 | 386 ms |
コンパイル使用メモリ | 20,736 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 21:15:52 |
合計ジャッジ時間 | 837 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 8 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%s",st); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ char st[20]; int i,j; scanf("%s",st); for(j=0;st[j]!=0;j++){ if(st[j]=='<')st[j]='>'; else st[j]='<'; } for(i=j;i>=0;i--){ printf("%c",st[i]); } return 0; }