結果

問題 No.46 はじめのn歩
ユーザー wakapaijazzwakapaijazz
提出日時 2020-02-14 02:42:37
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 611 bytes
コンパイル時間 2,211 ms
コンパイル使用メモリ 194,552 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-16 00:04:23
合計ジャッジ時間 4,305 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'void Main()':
main.cpp:20:15: warning: 'b' is used uninitialized [-Wuninitialized]
   20 |     cout << (b+a-1)/a << endl;
      |              ~^~
main.cpp:19:12: note: 'b' was declared here
   19 |     int a, b;
      |            ^
main.cpp:20:15: warning: 'a' is used uninitialized [-Wuninitialized]
   20 |     cout << (b+a-1)/a << endl;
      |              ~^~
main.cpp:19:9: note: 'a' was declared here
   19 |     int a, b;
      |         ^

ソースコード

diff #

#include"bits/stdc++.h"
using namespace std;

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep3(i,m,n) for(int (i)=m;(i)<=(n);(i)++)
#define rep3rev(i,m,n) for(int (i)=m;(i)>=(n);(i)--)
#define all(a) (a.begin()),(a.end())
#define rall(a) (a.rbegin()),(a.rend())
#define fi first
#define se second

typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef pair<int, int> pii;

void Main()
{
    int a, b;
    cout << (b+a-1)/a << endl;
	return;
}

int main()
{
	cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	cout << fixed << setprecision(15);
	Main();
	return 0;
}
0