結果
問題 | No.400 鏡 |
ユーザー |
|
提出日時 | 2018-12-19 19:25:31 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 750 ms |
コンパイル使用メモリ | 60,636 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-25 08:06:29 |
合計ジャッジ時間 | 1,314 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
ソースコード
#include <iostream>#include <stack>using namespace std;int main(void){char c;stack<char> s;while(cin>>c) s.push(c);while(!s.empty()){switch(s.top()){case '>':putchar('<');break;case '<':putchar('>');break;}s.pop();}return 0;}