結果
問題 | No.299 蟻本が読めない |
ユーザー | kachipan |
提出日時 | 2023-06-26 09:46:54 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 1,259 ms |
コンパイル使用メモリ | 27,416 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-16 02:33:24 |
合計ジャッジ時間 | 638 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
4,376 KB |
testcase_01 | AC | 1 ms
4,380 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
ソースコード
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> // パワーアップ int main() { enum ARIHON { VER_ONE = 316, VER_TWO = 368, }; int ver = 0; scanf("%d", &ver); ver--; // 出力の答えが(VER_TWO - VER_ONE)分多くなるのでデクリメント printf("%lld", VER_ONE + ver * (VER_TWO - VER_ONE)); }