結果
| 問題 | 
                            No.552 十分簡単な星1の問題
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-08-31 09:59:46 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                            (最新)
                                AC
                                 
                             
                            (最初)
                            
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 203 bytes | 
| コンパイル時間 | 1,820 ms | 
| コンパイル使用メモリ | 158,548 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-11-06 16:30:00 | 
| 合計ジャッジ時間 | 4,983 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 27 RE * 20 | 
コンパイルメッセージ
main.cpp: In function ‘int main(int, char**)’:
main.cpp:8:7: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |  scanf("%s",N);
      |  ~~~~~^~~~~~~~
            
            ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char **argv) 
{
 char N[10];
 scanf("%s",N);
 
 if('0' == N[0])
 {
  printf("0\n");
 }
 
 else
 {
  printf("%s0\n",N);
 }
 
 return 0;
}