結果
問題 |
No.400 鏡
|
ユーザー |
|
提出日時 | 2016-08-06 12:19:51 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 144 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 03:07:43 |
合計ジャッジ時間 | 756 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | AC * 4 WA * 4 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%s",s); | ^~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { char s[21]; int i,j; scanf("%s",s); for(i=0; s[i] !='\0'; i++){ } j=i-1; for(i=j;j>=0;j--){ if(s[i] == '<'){ printf(">"); }else{ printf("<"); } } printf("\n"); return 0; }