結果

問題 No.112 ややこしい鶴亀算
ユーザー pulcherriman
提出日時 2016-11-09 02:29:14
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 20,608 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-25 05:23:19
合計ジャッジ時間 899 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:2: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |  scanf("%s\n",a);
      |  ^~~~~~~~~~~~~~~
main.c:7:2: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |  scanf("%s",b);
      |  ^~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main(){
 char a[11],b[11];
 int x,i;
 x=0;
 scanf("%s\n",a);
 scanf("%s",b);
     for(i=0;i<10;i++){
         if(a[i]!=b[i]){
             printf("No\n");
                return 0;
         }
     }
    printf("Yes\n");
 return 0;
}
0