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