結果
問題 |
No.1149 色塗りゲーム
|
ユーザー |
![]() |
提出日時 | 2021-03-23 18:04:02 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 480 bytes |
コンパイル時間 | 142 ms |
コンパイル使用メモリ | 82,368 KB |
実行使用メモリ | 100,344 KB |
最終ジャッジ日時 | 2024-07-17 11:04:54 |
合計ジャッジ時間 | 6,651 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 49 |
ソースコード
#!/usr/bin/env python3 #coding:utf-8 import math import string from sys import stdin # import numpy as np # from matplotlib import pyplot as plt def main(): read=stdin.readline #edit here! n=int(read()) if n%2==1: print(1,(n+1)//2) else: print(2,n//2) while True: t=int(read()) if t==0: break else: k,x=map(int,read().split()) if x>(n+1)//2: y=n//2+1 print(k,x-y) else : y=n//2+1 print(k,x+y) if __name__ == '__main__': main()