結果

問題 No.128 お年玉(1)
ユーザー GeckoCPPSonataGeckoCPPSonata
提出日時 2019-08-31 17:55:50
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 1,391 bytes
コンパイル時間 2,164 ms
コンパイル使用メモリ 200,368 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-04-08 19:58:15
合計ジャッジ時間 3,007 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 2 ms
6,676 KB
testcase_04 AC 2 ms
6,676 KB
testcase_05 AC 2 ms
6,676 KB
testcase_06 AC 2 ms
6,676 KB
testcase_07 AC 2 ms
6,676 KB
testcase_08 AC 2 ms
6,676 KB
testcase_09 AC 3 ms
6,676 KB
testcase_10 AC 3 ms
6,676 KB
testcase_11 AC 2 ms
6,676 KB
testcase_12 AC 2 ms
6,676 KB
testcase_13 AC 2 ms
6,676 KB
testcase_14 AC 2 ms
6,676 KB
testcase_15 AC 2 ms
6,676 KB
testcase_16 AC 2 ms
6,676 KB
testcase_17 AC 2 ms
6,676 KB
testcase_18 AC 2 ms
6,676 KB
testcase_19 AC 2 ms
6,676 KB
testcase_20 AC 2 ms
6,676 KB
testcase_21 AC 2 ms
6,676 KB
testcase_22 AC 2 ms
6,676 KB
testcase_23 AC 2 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
//#pragma GCC optimize ("-O3")
using ll = long long;
const char alphabet[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
const ll MOD = (ll) 1e9 + 7;
const int MAX_INT = 1 << 17;
const ll INFL = 1LL << 60;

const ll MAX_V = 1010;
const ll MAX_E = 2010;
ll V, E;
struct edge {
    ll from, to, cost;
};
edge ES[MAX_E];
ll d[MAX_V];

#define ALL(obj) (obj).begin(),(obj).end()
#define RALL(obj) (obj).rbegin(),(obj).rend()
#define PRINT(n) cout << n << "\n";
#define PRINT2(n, m) cout << n << " " << m << " "<< "\n";

// REP(i,n)   -- 0 - n-1 ++
#define REP(i,n)  for(int i=0;i<(int)n;++i)
// RREP(i,n)  -- n-1 - 0 --
#define RREP(i,n) for(int i =(int)n;i>0;--i)
// rep(i,a,b) -- a - b   ++
#define rep(i,a,b) for(int i=a;i<=b;i++)
// rrep(i,a,b)-- a - b   --
#define rrep(i,a,b) for(int i=a;i>=b;i--)

// 0 - 2^(n-1)
#define REPbit(bit, n)  for(int bit = 0; bit < (int)(1<<n); ++bit)
#define FOR(i,a,b)  for(int i=a; i<=(int)b; ++i)
void no128();
int main() {cin.tie(0); ios::sync_with_stdio(false); no128();}

/********************************/
/** yukicoder No.128           **/
/** by MoonlightSonata         **/
/********************************/

void no128(){
    ll n, m, ans;
    cin >> n >> m;
    n /= 1000;
    ans = (n/m)*1000;
    PRINT(ans)
}
0