結果

問題 No.739 大事なことなので2度言います
ユーザー KakisukeKakisuke
提出日時 2018-12-29 19:17:59
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 411 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 20,096 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-09 20:46:33
合計ジャッジ時間 651 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
6,812 KB
testcase_01 WA -
testcase_02 AC 0 ms
6,940 KB
testcase_03 WA -
testcase_04 AC 0 ms
6,944 KB
testcase_05 WA -
testcase_06 AC 1 ms
6,940 KB
testcase_07 AC 0 ms
6,944 KB
testcase_08 AC 0 ms
6,940 KB
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |     scanf("%s",s);
      |     ^~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
int main()
{
    char s[50],ans[100];
    int i,count=0;
    scanf("%s",s);
    sprintf(ans,"%s%s",s,s);
    for(i=0;;i++){
        if(s[i]==ans[i]){
            count=1;
        }else{
            count=0;
            break;
        }
    }
    switch(count){
        case 1:
        printf("YES\n");
        break;
        case 0:
        printf("NO\n");
        break;
    }
    return 0;
}
0