結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
yukiteru
|
| 提出日時 | 2017-10-21 20:03:59 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 498 bytes |
| コンパイル時間 | 700 ms |
| コンパイル使用メモリ | 76,272 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-21 12:36:11 |
| 合計ジャッジ時間 | 1,113 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 10 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:25:15: warning: 'b' is used uninitialized [-Wuninitialized]
25 | if (b / a == 0) {
| ~~^~~
main.cpp:23:16: note: 'b' was declared here
23 | int a, b;
| ^
main.cpp:25:15: warning: 'a' is used uninitialized [-Wuninitialized]
25 | if (b / a == 0) {
| ~~^~~
main.cpp:23:13: note: 'a' was declared here
23 | int a, b;
| ^
ソースコード
#include<iostream>
#include<string>
#include<string.h>
#include<algorithm>
#include<stdio.h>
#include<cmath>
#include<vector>
#include<utility>
#include<stack>
#include<queue>
#include<list>
#include<bitset>
#define FOR(i, a, b) for(int i=(a);i<=(b);i++)
#define RFOR(i, a, b) for(int i=(a);i>=(b);i--)
#define MOD 1000000007
#define INF 1000000000
using namespace std;
int main(void) {
int a, b;
if (b / a == 0) {
b = b / a;
}
else {
b = b / a + 1;
}
cout << b << endl;
return 0;
}
yukiteru