結果

問題 No.299 蟻本が読めない
ユーザー kachipankachipan
提出日時 2023-06-26 09:48:30
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 359 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 27,868 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-16 02:35:19
合計ジャッジ時間 655 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>

// パワーアップ
int main()
{
	enum ARIHON
	{
		VER_ONE = 316,
		VER_TWO = 368,
	};

	long long int ver = 0;
	scanf("%d", &ver);
	ver--;	// 出力の答えが(VER_TWO - VER_ONE)分多くなるのでデクリメント

	printf("%lld", VER_ONE + ver * (VER_TWO - VER_ONE));
}

0