結果

問題 No.552 十分簡単な星1の問題
ユーザー pinebooks
提出日時 2017-08-25 21:57:32
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 258 bytes
コンパイル時間 408 ms
コンパイル使用メモリ 52,608 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-15 15:45:05
合計ジャッジ時間 1,595 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 46
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:9:29: warning: 'N' is used uninitialized [-Wuninitialized]
    9 |   string N_str = to_string(N);
      |                             ^
main.cpp:8:13: note: 'N' was declared here
    8 |   long long N;
      |             ^

ソースコード

diff #

#include <cstdio>
#include <string>

using namespace std;

int main(){
  // 数で考えてはいけない
  long long N;
  string N_str = to_string(N);
  if (N_str == "0")
    printf("0");
  else{
    N_str += "0";
    printf("%s", N_str);
  }
  return 0;
}
0