結果
| 問題 | No.552 十分簡単な星1の問題 |
| コンテスト | |
| ユーザー |
pinebooks
|
| 提出日時 | 2017-08-25 21:59:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 266 bytes |
| コンパイル時間 | 396 ms |
| コンパイル使用メモリ | 52,352 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-15 15:45:07 |
| 合計ジャッジ時間 | 1,657 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
| ^
ソースコード
#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.c_str());
}
return 0;
}
pinebooks