結果

問題 No.128 お年玉(1)
ユーザー karinohitokarinohito
提出日時 2021-04-01 13:42:00
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 900 bytes
コンパイル時間 956 ms
コンパイル使用メモリ 99,232 KB
実行使用メモリ 4,568 KB
最終ジャッジ日時 2023-08-22 17:22:57
合計ジャッジ時間 4,961 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: 関数 ‘int main()’ 内:
main.cpp:45:28: 警告: ‘M’ is used uninitialized [-Wuninitialized]
   45 |         cout << (N / (1000 * M)) * 1000 << endl;
      |                      ~~~~~~^~~~
main.cpp:43:14: 備考: ‘M’ はここで定義されています
   43 |         ll N,M;
      |              ^

ソースコード

diff #

#include <iostream>
//#include<atcoder/all>
#include <numeric>
#include <cmath>
#include <limits>
#include <stdio.h>
#include <iomanip>
#include <string> 
#include <vector>
#include <algorithm>
#include <utility> 
#include <tuple> 
#include <cstdint> 
#include <cstdio> 
#include <map> 
#include <queue>
#include <set> 
#include <stack> 
#include <deque> 
#include <unordered_map> 
#include <unordered_set>
#include <bitset> 
#include <cctype>
//using namespace atcoder;
using namespace std;
using ll = long long;
#define all(A) A.begin(),A.end()
using vll = vector<ll>;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
using Graph = vector<vector<pair<ll, ll>>>;
vector<bool> seen;
bool C = true;
vector<ll> dist;
ll mod =1e9+7;
int op(int a, int b) {
	return min(a, b);
}
int e() {
	return int(1e9);
}

int main() {
	ll N,M;
	cin >> N,M;
	cout << (N / (1000 * M)) * 1000 << endl;
}
0