結果
| 問題 | No.396 クラス替え |
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2016-07-15 23:07:21 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 267 bytes |
| 記録 | |
| コンパイル時間 | 627 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 21,760 KB |
| 最終ジャッジ日時 | 2026-05-02 23:25:14 |
| 合計ジャッジ時間 | 7,652 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 TLE * 1 -- * 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