結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
![]() |
提出日時 | 2016-04-07 17:39:32 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 57 ms / 5,000 ms |
コード長 | 374 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-10-04 02:29:28 |
合計ジャッジ時間 | 793 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#coding:utf-8 P=input() ope=[raw_input().split() for i in range(P)] game=[] for i in ope: game.append(map(int,i)) for N,K in game: if N <=K: print 'Win' continue n=N-1 k=K+1 while k < n: n-=k if n <= K: print 'Win' else: print 'Lose'