結果

問題 No.69 文字を自由に並び替え
ユーザー HaijinnHaijinn
提出日時 2017-07-22 18:36:32
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 299 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 20,992 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 13:49:23
合計ジャッジ時間 694 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
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",a,b);
      | ^~~~~~~~~~~~~~~~~

ソースコード

diff #

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


int main(){
char a[11];
char b[11];
int i,j;
int x;
int s=0;
scanf("%s%s",a,b);
x=strlen(a);
for(i=0;i<x;i++){
	for(j=0;j<x;j++){
	if(a[i]==b[j]){
		
		s++;
		a[i]=0;
		
		
		
		
	}
	
	
	}
	
}
if(s==x){
printf("YES\n");
}else{
	
	printf("NO\n");
}
	return 0;
}
0