結果
問題 | No.400 鏡 |
ユーザー |
|
提出日時 | 2018-04-22 15:14:23 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 560 ms |
コンパイル使用メモリ | 29,184 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 05:39:03 |
合計ジャッジ時間 | 841 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
ソースコード
#include <stdio.h> #include <string.h> int main(void) { char s[21], c[21]; scanf("%s", s); strcpy(c, s); int a = strlen(s); for (int i = 0; i < a; i++) { if (c[i] == '<') s[a - 1 - i] = '>'; else s[a - 1 - i] = '<'; } puts(s); return 0; }