結果
| 問題 |
No.69 文字を自由に並び替え
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-01-22 20:59:53 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 407 bytes |
| コンパイル時間 | 117 ms |
| コンパイル使用メモリ | 29,056 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-14 06:54:56 |
| 合計ジャッジ時間 | 765 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
#include <stdio.h>
int count[26];
char str[11];
int main(void){
scanf("%s",str);
for(int i=0;str[i]!='\0';i++)count[str[i]-'a']++;
scanf("%s",str);
for(int i=0;str[i]!='\0';i++)count[str[i]-'a']--;
int judge=0;
for(judge=0;judge<26;judge++){
if(count[judge]!=0){
printf("NO\n");
break;
}
}
if(judge==26)printf("YES\n");
return 0;
}