結果
| 問題 | No.477 MVP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-01-28 23:05:42 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 181 bytes |
| コンパイル時間 | 1,226 ms |
| コンパイル使用メモリ | 52,704 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 21:24:49 |
| 合計ジャッジ時間 | 1,157 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%lu%lu", &N,&K);
| ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include <iostream>
using namespace std;
int main(){
unsigned long N;
unsigned long K;
unsigned long M;
scanf("%lu%lu", &N,&K);
M = N/(K+1) + 1;
printf("%lu\n",M);
}