結果

問題 No.8026 Third Power Problem
ユーザー Yamyuki
提出日時 2017-03-31 23:28:38
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 19,712 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-07 06:00:27
合計ジャッジ時間 761 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 | scanf("%lld",&a);
      | ^~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>

int main(){
long long ans,a,p=1000000007;
scanf("%lld",&a);
ans=a*a%p;
ans=ans*a%p;
printf("%lld\n",ans);
return 0;
}
0