結果
問題 |
No.477 MVP
|
ユーザー |
![]() |
提出日時 | 2017-01-27 22:32:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 365 bytes |
コンパイル時間 | 821 ms |
コンパイル使用メモリ | 81,372 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 16:19:35 |
合計ジャッジ時間 | 1,418 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 3 |
ソースコード
#include<iostream> #include<algorithm> #include<cstdio> #include<cstdlib> #include<vector> #include<map> #include<queue> #include<string> #include<sstream> #include<cmath> #include<numeric> using namespace std; int main(){ long long int n, k; cin >> n >> k; long long int ans = n / (k+1); cout << ( n % (k+1) == 0 ? ans : ans+1) << endl; return 0; }