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