結果
問題 |
No.69 文字を自由に並び替え
|
ユーザー |
![]() |
提出日時 | 2018-11-12 19:54:46 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 336 bytes |
コンパイル時間 | 297 ms |
コンパイル使用メモリ | 29,824 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 23:11:34 |
合計ジャッジ時間 | 1,112 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 WA * 1 |
ソースコード
#include<stdio.h> #include<string.h> int main(){ int c,i,j,len; char a[10],b[10]; scanf("%s%*c%s",a,b); len = strlen(a); for (i=0;i<len;i++) { c=0; for (j=0;j<len;j++) if (a[i]==a[j]) c++; for (j=0;j<len;j++) if (a[i]==b[j]) c--; if (c!=0) { puts("NO"); return 0; } } puts("YES"); return 0; }