結果
| 問題 | No.400 鏡 |
| コンテスト | |
| ユーザー |
くれちー
|
| 提出日時 | 2016-08-10 23:49:08 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 257 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 29,512 KB |
| 最終ジャッジ日時 | 2026-02-23 22:14:37 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 8 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%s", s);
| ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <string.h>
int main() {
char s[21], a[21];
int l, i;
scanf("%s", s);
l = strlen(s);
for (i = 0; i < l; i++) {
if (s[l - i - 1] == '<') a[i] = '>';
else a[i] = '<';
printf("%c", a[i]);
}
printf("\n");
return 0;
}
くれちー