結果
問題 | No.400 鏡 |
ユーザー | ゆーたろ |
提出日時 | 2016-11-19 08:14:35 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 208 ms |
コンパイル使用メモリ | 24,124 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-08-17 14:08:36 |
合計ジャッジ時間 | 964 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
4,380 KB |
testcase_01 | AC | 0 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 1 ms
4,376 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 1 ms
4,380 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
ソースコード
#include <stdio.h> #include <string.h> int main(void) { char in[21], out[21]; int len, i,j=0; scanf("%s", in); len = strlen(in); for(i=len-1; i>=0; i--){ switch(in[i]){ case '>': out[j++]='<'; break; case '<': out[j++]='>'; break; } } printf("%s", out); return 0; }