結果

問題 No.44 DPなすごろく
ユーザー ルッツファン
提出日時 2015-11-28 02:49:18
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 718 bytes
コンパイル時間 3,121 ms
コンパイル使用メモリ 74,664 KB
実行使用メモリ 52,264 KB
最終ジャッジ日時 2024-09-14 01:59:24
合計ジャッジ時間 5,375 ms
ジャッジサーバーID
(参考情報)
judge4 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class yukicoder09 {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		
			try {
				tes = br.readLine();
			} catch (IOException e) {
				// TODO 自動生成された catch ブロック
				e.printStackTrace();
			}
			int x1 = (int)Long.parseLong(tes);
			
			
			
			
			System.out.println(osr(x1,0,0));
			
			
	}
	static long osr(int moku,long ima,long kai){
		long ret = 0;
		
		for(int i=0;i<2;i++){
			ret = ima + i+1;
			if(ret == moku){
				kai++;
				return 0;
			}
			
		}
		
		return ret;
	}

}
0