結果
| 問題 |
No.604 誕生日のお小遣い
|
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-15 19:38:40 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 311 bytes |
| コンパイル時間 | 3,488 ms |
| コンパイル使用メモリ | 79,784 KB |
| 実行使用メモリ | 41,472 KB |
| 最終ジャッジ日時 | 2024-12-26 19:53:47 |
| 合計ジャッジ時間 | 7,534 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 12 |
ソースコード
import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long n = a-1+b; //a年間でn円
long x = c/n;
long y = c%n;
System.out.println(x*a+y);
}
}
Tsukasa_Type