結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
👑 ![]() |
提出日時 | 2015-08-05 12:26:10 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 208 bytes |
コンパイル時間 | 255 ms |
コンパイル使用メモリ | 20,736 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 06:01:11 |
合計ジャッジ時間 | 1,027 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%s%s",a,b); | ^~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ char a[11]={},b[11]={}; int i=0,j; scanf("%s%s",a,b); while(a[i]){ j=-1; while(++j<10)if(b[j]==a[i]){b[j]=0;i++;break;} if(j==10)break; } printf(a[i]?"NO":"YES"); return 0; }