結果

問題 No.400 鏡
ユーザー Haijinn
提出日時 2016-08-12 16:28:16
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 20,608 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-07 12:09:22
合計ジャッジ時間 795 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other AC * 4 WA * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:2:20: warning: extra tokens at end of #include directive
    2 | #include <string.h>;
      |                    ^
main.c: In function ‘main’:
main.c:11:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 | scanf("%s",s);
      | ^~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <string.h>;

int main(void)
{
	
char s[19];
int c=0;
int d=0;

scanf("%s",s);
int p=strlen(s);
int o=strlen(s);
while(!(c==strlen(s))){

if(s[c]=='<'){
	
	
	printf(">");
	c++;
}else{
printf("<");
	c++;
	
}

}

	return 0;
}
0