結果
| 問題 |
No.396 クラス替え
|
| ユーザー |
compass19
|
| 提出日時 | 2016-07-15 23:07:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 267 bytes |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,576 KB |
| 最終ジャッジ日時 | 2024-10-15 04:42:37 |
| 合計ジャッジ時間 | 4,691 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 TLE * 2 -- * 10 |
ソースコード
n = list(map(int,input().split()))
x = list(map(int,input().split()))
def cla(x, i=0, j=0):
while i < x:
i = i + n[1]
j = j+1
j = j%2
if j == 1:
return(x%n[1])
else:
return((n[1]-x%n[1]+1)%n[1])
if cla(x[0]) == cla(x[1]):
print('YES')
else:
print('NO')
compass19