結果
| 問題 | No.604 誕生日のお小遣い |
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-15 19:38:40 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 311 bytes |
| 記録 | |
| コンパイル時間 | 2,341 ms |
| コンパイル使用メモリ | 81,112 KB |
| 実行使用メモリ | 42,420 KB |
| 最終ジャッジ日時 | 2026-06-01 15:55:00 |
| 合計ジャッジ時間 | 4,818 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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