結果
| 問題 | No.1057 素敵な日 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-21 22:41:21 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 312 bytes |
| コンパイル時間 | 1,989 ms |
| コンパイル使用メモリ | 74,428 KB |
| 実行使用メモリ | 54,524 KB |
| 最終ジャッジ日時 | 2024-12-31 11:16:18 |
| 合計ジャッジ時間 | 4,078 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 WA * 2 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int a=sc.nextInt(),b=sc.nextInt();
int i=0;
for(;a>0&&b>0;i++){
if(i%2==0)a--;
if(i%2==1)b--;
}
System.out.println(i);
sc.close();
return;
}
}