結果
問題 |
No.400 鏡
|
ユーザー |
![]() |
提出日時 | 2018-01-27 19:59:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 246 bytes |
コンパイル時間 | 642 ms |
コンパイル使用メモリ | 64,128 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 07:03:29 |
合計ジャッジ時間 | 1,444 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
ソースコード
#include <iostream> #include <cstring> using namespace std; char s[21],ans[21]; int main(void){ cin >> s; int len=strlen(s); for(int i=0;i<len;i++){ if(s[i]=='<') ans[len-i-1]='>'; if(s[i]=='>') ans[len-i-1]='<'; } cout << ans << endl; }