結果
問題 | No.682 Average |
ユーザー | youthfuldays072 |
提出日時 | 2018-05-25 09:46:00 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 413 bytes |
コンパイル時間 | 3,586 ms |
コンパイル使用メモリ | 71,184 KB |
実行使用メモリ | 57,900 KB |
最終ジャッジ日時 | 2023-09-11 03:20:36 |
合計ジャッジ時間 | 4,615 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 124 ms
55,664 KB |
testcase_06 | AC | 125 ms
55,392 KB |
testcase_07 | AC | 124 ms
55,708 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 125 ms
55,376 KB |
testcase_12 | WA | - |
ソースコード
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(i%3==0) { counter++; } } System.out.println(counter); } }