結果
| 問題 | No.400 鏡 |
| コンテスト | |
| ユーザー |
checkcheck12ch1
|
| 提出日時 | 2016-11-18 17:21:08 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 271 bytes |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 20,864 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-26 05:54:16 |
| 合計ジャッジ時間 | 696 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | AC * 2 WA * 6 |
コンパイルメッセージ
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_len] == '<'){
printf(">");
}
else{
printf("<");
}
}
printf("\n");
return 0;
}
checkcheck12ch1