結果
問題 |
No.682 Average
|
ユーザー |
![]() |
提出日時 | 2018-05-25 09:46:00 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 413 bytes |
コンパイル時間 | 1,831 ms |
コンパイル使用メモリ | 74,116 KB |
実行使用メモリ | 56,464 KB |
最終ジャッジ日時 | 2024-06-28 17:52:12 |
合計ジャッジ時間 | 3,896 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 9 |
ソースコード
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); } }