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