結果
| 問題 |
No.128 お年玉(1)
|
| コンテスト | |
| ユーザー |
yanozawa
|
| 提出日時 | 2019-11-02 20:27:14 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 248 bytes |
| コンパイル時間 | 141 ms |
| コンパイル使用メモリ | 29,440 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-01 11:09:09 |
| 合計ジャッジ時間 | 940 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 WA * 17 |
ソースコード
#include <stdio.h>
#include <math.h>
#include <string.h>
#define pai 3.1415926535
int main(void) {
int N, M;
scanf("%d%d", &N, &M);
if (1000*M >= N / M) {
printf("%d\n", ((N / M)/1000)*1000);
}
else {
printf("%d\n", 0);
}
return 0;
}
yanozawa