結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
![]() |
提出日時 | 2014-11-11 23:34:39 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 332 bytes |
コンパイル時間 | 546 ms |
コンパイル使用メモリ | 63,400 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 09:50:32 |
合計ジャッジ時間 | 1,315 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 14 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:13:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 13 | int n,k;scanf("%d%d",&n,&k); | ~~~~~^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <stdlib.h> #include <iostream> #include <vector> #include <string> #include <algorithm> #include <map> using namespace std; //namaega184 //開催時間がきつい・・・ int main(){ int n,k;scanf("%d%d",&n,&k); int a=(n+k-1)/k; printf("%d\n",a-(a+1)/2-(a%2?0:1)); return 0; }