結果
| 問題 |
No.400 鏡
|
| コンテスト | |
| ユーザー |
checkcheck12ch1
|
| 提出日時 | 2016-11-18 17:26:00 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 270 bytes |
| コンパイル時間 | 389 ms |
| コンパイル使用メモリ | 20,992 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-26 05:58:49 |
| 合計ジャッジ時間 | 982 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / 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",a);
| ^~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <string.h>
int main(){
int a_len = 0,a_ix;
char a[21];
scanf("%s",a);
a_len = strlen(a);
for(a_ix = a_len - 1; a_ix >= 0; a_ix--){
if(a[a_ix] == '<'){
printf(">");
}
else{
printf("<");
}
}
printf("\n");
return 0;
}
checkcheck12ch1