結果
問題 |
No.396 クラス替え
|
ユーザー |
![]() |
提出日時 | 2016-07-15 23:04:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 264 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 17,572 KB |
最終ジャッジ日時 | 2024-10-15 04:42:00 |
合計ジャッジ時間 | 4,379 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 3 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)%4) if cla(x[0]) == cla(x[1]): print('YES') else: print('NO')