結果

問題 No.72 そろばん Med
ユーザー kuuso1kuuso1
提出日時 2014-11-19 00:50:41
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 992 bytes
コンパイル時間 918 ms
コンパイル使用メモリ 110,820 KB
実行使用メモリ 25,796 KB
最終ジャッジ日時 2024-05-01 08:28:25
合計ジャッジ時間 2,080 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
23,724 KB
testcase_01 AC 21 ms
23,508 KB
testcase_02 AC 21 ms
23,376 KB
testcase_03 AC 19 ms
23,856 KB
testcase_04 AC 20 ms
23,728 KB
testcase_05 AC 22 ms
23,476 KB
testcase_06 AC 21 ms
23,856 KB
testcase_07 AC 21 ms
25,676 KB
testcase_08 AC 20 ms
23,624 KB
testcase_09 AC 20 ms
23,880 KB
testcase_10 AC 21 ms
23,752 KB
testcase_11 AC 20 ms
23,508 KB
testcase_12 AC 20 ms
23,616 KB
testcase_13 AC 20 ms
21,552 KB
testcase_14 AC 22 ms
21,564 KB
testcase_15 AC 19 ms
23,764 KB
testcase_16 AC 20 ms
23,252 KB
testcase_17 AC 20 ms
23,620 KB
testcase_18 AC 21 ms
23,856 KB
testcase_19 AC 20 ms
23,756 KB
testcase_20 AC 21 ms
23,728 KB
testcase_21 AC 22 ms
23,636 KB
testcase_22 AC 21 ms
25,792 KB
testcase_23 AC 21 ms
23,504 KB
testcase_24 AC 20 ms
23,852 KB
testcase_25 AC 21 ms
23,636 KB
testcase_26 AC 22 ms
25,796 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
 
class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}

class Sol{
	public void Solve(){
		long U=N/2;
		long D=N-N/2;
		long mod=(long)(1e6+7);
		long ans=((D%mod+1)*(U%mod+1)-1)%mod;
		if(ans<0)ans+=mod;
		Console.WriteLine(ans);
		
	}
	long N;
	public Sol(){
		N=rl();
	}




	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(){return Console.ReadLine().Split(' ');}
	static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));}
	static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));}
	static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));}
}
0