結果
| 問題 |
No.128 お年玉(1)
|
| コンテスト | |
| ユーザー |
aoharu9825
|
| 提出日時 | 2019-07-18 21:46:08 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 490 bytes |
| コンパイル時間 | 561 ms |
| コンパイル使用メモリ | 30,208 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-10-01 11:05:01 |
| 合計ジャッジ時間 | 6,970 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 TLE * 1 -- * 14 |
ソースコード
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
typedef long long int ll;
ll MAX(ll a, ll b){return a>b?a:b;}
ll MIN(ll a, ll b){return a>b?b:a;}
int compare(const void* a, const void* b){return *(int*)a - *(int*)b;}
ll digits(ll a){ll tmp=a; ll cnt=0; while(tmp>0){tmp/=10; cnt+=1;} return cnt;}
int main(void){
ll n,m;
scanf("%lld%lld", &n,&m);
ll cnt = 0;
while(cnt*1000*m <= n){
cnt += 1;
}
printf("%lld\n", (cnt-1)*1000);
}
aoharu9825