結果
| 問題 |
No.128 お年玉(1)
|
| コンテスト | |
| ユーザー |
mits58
|
| 提出日時 | 2015-07-18 01:21:56 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 110 ms / 5,000 ms |
| コード長 | 415 bytes |
| コンパイル時間 | 1,923 ms |
| コンパイル使用メモリ | 73,916 KB |
| 実行使用メモリ | 41,248 KB |
| 最終ジャッジ日時 | 2024-10-01 09:59:55 |
| 合計ジャッジ時間 | 5,172 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
while(sc.hasNext()){
long n=sc.nextLong();
long m=sc.nextLong();
if(n/m<1000) System.out.println(0);
else{
long temp=n/1000/m;
temp=temp*1000;
System.out.println(temp);
}
}
}
}
mits58