結果
| 問題 | No.682 Average |
| コンテスト | |
| ユーザー |
youthfuldays072
|
| 提出日時 | 2018-05-25 09:47:42 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 137 ms / 2,000 ms |
| + 936µs | |
| コード長 | 419 bytes |
| 記録 | |
| コンパイル時間 | 1,711 ms |
| コンパイル使用メモリ | 93,092 KB |
| 実行使用メモリ | 48,148 KB |
| 最終ジャッジ日時 | 2026-10-15 09:50:18 |
| 合計ジャッジ時間 | 5,062 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Main main=new Main();
main.run();
}
void run() {
Scanner sc=new Scanner(System.in);
int A=sc.nextInt();
int B=sc.nextInt();
int counter=0;
for(int i=A;i<=B;i++) {
if((A+B+i)%3==0) {
counter++;
}
}
System.out.println(counter);
}
}
youthfuldays072