結果
問題 | No.682 Average |
ユーザー |
![]() |
提出日時 | 2018-07-23 06:31:37 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 290 bytes |
コンパイル時間 | 576 ms |
コンパイル使用メモリ | 57,096 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 05:31:48 |
合計ジャッジ時間 | 1,386 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <fstream> #include <iostream> int main() { //std::ifstream inf("Text.txt"); std::cin.rdbuf(inf.rdbuf()); int A, B; std::cin >> A >> B; int ans = 0; for (int i = A; i <= B; i++) { if ((A + B + i) % 3 == 0) { ans++; } } std::cout << ans << std::endl; return 0; }