結果
| 問題 | 
                            No.128 お年玉(1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             himo
                         | 
                    
| 提出日時 | 2019-09-17 07:21:19 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 205 bytes | 
| コンパイル時間 | 1,235 ms | 
| コンパイル使用メモリ | 158,920 KB | 
| 実行使用メモリ | 9,892 KB | 
| 最終ジャッジ日時 | 2024-10-01 11:06:44 | 
| 合計ジャッジ時間 | 7,908 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 WA * 1 TLE * 1 -- * 14 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main() {
long long n,m;
cin >> n >>m;
int ans =0;
int i=1;
while(1){
if(m*1000*i<=n){
    ans++;
}
else{
    break;
}
i++;
}
cout << ans*1000 <<endl;
}
            
            
            
        
            
himo