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