結果
| 問題 | No.128 お年玉(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-07-29 16:07:16 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.90.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 374 bytes |
| 記録 | |
| コンパイル時間 | 3,645 ms |
| コンパイル使用メモリ | 347,384 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-29 16:07:49 |
| 合計ジャッジ時間 | 9,819 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 TLE * 1 -- * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
ll n, k;
cin >> n >> k;
ll i = 0, countt = 0;
while ((i+1) * 1000 * k <= n)
{
countt++;
i++;
}
if (countt == 0) cout << 0;
else cout << i * 1000;
return 0;
}