結果
問題 |
No.257 N言っちゃダメゲーム (3)
|
ユーザー |
|
提出日時 | 2015-08-03 16:08:51 |
言語 | Python2 (2.7.18) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 255 bytes |
コンパイル時間 | 254 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 43,300 KB |
最終ジャッジ日時 | 2024-07-16 21:09:22 |
合計ジャッジ時間 | 6,661 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 29 |
ソースコード
# -*- coding:utf-8 -*- if __name__ == "__main__": n,k = map(int,raw_input().split()) rest = n % (k+1) if rest == 1: now = 0 else: now = rest - 1 print now while True: opponent = input() if opponent >= n: break now += (k+1) print now