結果

問題 No.8026 Third Power Problem
ユーザー 👑 obakyan
提出日時 2019-05-16 00:39:00
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 378 bytes
コンパイル時間 602 ms
コンパイル使用メモリ 72,168 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-14 18:32:16
合計ジャッジ時間 1,608 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstdlib>
#include <cstddef>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstring>
#include <string>
#include <iostream>
#include <iomanip>
#include <numeric>
#define L64 long long
#define MOD (1000000007LL)

int main(void)
{
  L64 n, a;
  std::cin >> n;
  a = (n * n) % MOD;
  a = (a * n) % MOD;
  std::cout << a << std::endl;
}
0