結果
| 問題 |
No.128 お年玉(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-22 16:35:04 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 297 bytes |
| コンパイル時間 | 188 ms |
| コンパイル使用メモリ | 30,080 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-01 10:43:01 |
| 合計ジャッジ時間 | 869 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
コンパイルメッセージ
main.cpp: In function ‘int main(int, char**)’:
main.cpp:14:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
14 | scanf("%llu", &lM);
| ~~~~~^~~~~~~~~~~~~
main.cpp:15:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
15 | scanf("%u", &lN);
| ~~~~~^~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main(int argc, char *argv[])
{
unsigned long long lM = 0;
int lN = 0;
scanf("%llu", &lM);
scanf("%u", &lN);
unsigned long long lTemp = lM / 1000;
printf("%llu", ( lTemp / lN ) *1000 );
return 0;
}