結果

問題 No.552 十分簡単な星1の問題
ユーザー suppy193
提出日時 2020-03-20 14:52:21
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 20,096 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-14 04:56:05
合計ジャッジ時間 1,482 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 47
権限があれば一括ダウンロードができます
コンパイルメッセージ
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", n);
      |     ^~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void)
{
    char n[50];
    scanf("%s", n);
    if(n[0] == '0'){
        printf("0\n");
    }
    else{
        printf("%s0\n", n);
    }
    
    return 0;
}
0