結果
| 問題 | No.400 鏡 |
| コンテスト | |
| ユーザー |
iwltwm
|
| 提出日時 | 2018-01-27 19:59:57 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 590 ms |
| コンパイル使用メモリ | 74,220 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-03 02:53:54 |
| 合計ジャッジ時間 | 1,486 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
iwltwm