結果
| 問題 | No.682 Average |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-11 22:54:33 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 254 bytes |
| 記録 | |
| コンパイル時間 | 121 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-06-28 08:56:40 |
| 合計ジャッジ時間 | 1,087 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 3 |
ソースコード
A, B = list(map(int, input().split())) res = 0 if (A + B) % 3 == 0 else 3 - (A + B) % 3 start = A if res == A % 3 else A + abs(res - (A % 3)) end = B if res == B % 3 else B - abs(res - (0 if B % 3 == res else 3 + B % 3 - res)) print((end - start)//3 + 1)