結果
問題 |
No.69 文字を自由に並び替え
|
ユーザー |
|
提出日時 | 2017-02-13 23:11:22 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 276 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 21,120 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 06:28:28 |
合計ジャッジ時間 | 714 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%s",s1); | ^~~~~~~~~~~~~~ main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%s",s2); | ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int c[27]; int main(){ int i; char s1[11],s2[11]; scanf("%s",s1); scanf("%s",s2); for(i=0;s1[i]!='\0';i++){ c[s1[i]-'a']++; c[s2[i]-'a']--; } for(i=0;i<27;i++){ if(c[i]!=0){ printf("NO\n"); return 0; } } printf("YES\n"); return 0; }