結果

問題 No.299 蟻本が読めない
ユーザー re1nsre1ns
提出日時 2015-11-14 11:38:15
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 208 bytes
コンパイル時間 373 ms
コンパイル使用メモリ 50,748 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-10-11 17:42:30
合計ジャッジ時間 862 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
	long long int n,ans=316;
	cin >> n;
	for(long long int i=1;i<n;i++){
		ans += 53;
	}
	// ans = n*((2*316)+(n-1)*53);
	// ans /= 2;
	cout << ans << endl;
}
0