結果
| 問題 |
No.8026 Third Power Problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-31 22:44:09 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 152 bytes |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 20,224 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-07 05:00:45 |
| 合計ジャッジ時間 | 1,087 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%lld",&n);
| ^~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
#define X 1000000007
int main(void){
long long n,m;
scanf("%lld",&n);
m = (n*n)%X;
n = (m*n)%X;
printf("%lld\n",n);
return 0;
}