結果

問題 No.69 文字を自由に並び替え
ユーザー HaijinnHaijinn
提出日時 2017-07-22 18:36:32
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 299 bytes
コンパイル時間 697 ms
コンパイル使用メモリ 23,784 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-09-09 21:21:04
合計ジャッジ時間 1,257 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 WA -
testcase_05 AC 0 ms
4,380 KB
testcase_06 AC 1 ms
4,384 KB
testcase_07 AC 0 ms
4,376 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 0 ms
4,380 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 0 ms
4,380 KB
testcase_14 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

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