結果
| 問題 |
No.257 N言っちゃダメゲーム (3)
|
| コンテスト | |
| ユーザー |
saytakaPC
|
| 提出日時 | 2015-07-31 23:45:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 507 bytes |
| コンパイル時間 | 559 ms |
| コンパイル使用メモリ | 64,612 KB |
| 実行使用メモリ | 43,812 KB |
| 最終ジャッジ日時 | 2024-07-16 20:59:43 |
| 合計ジャッジ時間 | 6,993 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 29 |
ソースコード
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <map>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,b) FOR(i,0,b)
#define PB push_back
#define MP make_pair
int main(){
int n,k;
int grant;
cin>>n>>k;
cin>>grant;
if(grant>k){
cout<<grant-k<<endl;
}else cout<<0<<endl;
int last=grant;
while(cin>>grant){
cout<<(last+grant)/2<<endl;
last=grant;
if(grant>=n)break;
}
}
saytakaPC