結果
| 問題 | No.682 Average |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-11 22:49:02 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-06-28 08:54:19 |
| 合計ジャッジ時間 | 1,161 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 2 |
ソースコード
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 == 0 else 3 - B % 3)) print((end - start)//3 + 1)