結果
問題 |
No.9005 実行時間/使用メモリテスト(テスト用)
|
ユーザー |
![]() |
提出日時 | 2016-03-15 03:38:03 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 3,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 20,736 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-01 06:32:23 |
合計ジャッジ時間 | 550 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 |
コンパイルメッセージ
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("%d",&n); | ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> #define ll long long int int main(){ //printf("%d\n",sizeof(ll)); int n; scanf("%d",&n); //ll mod=(ll)1e9+7; ll mod=(ll)3e9+7; ll x=3; ll y=2003094538; ll i; for(i=0;i<mod;i++){ x*=y; if(x>=mod)x%=mod; //if(i==2345645443)printf("yes\n"); } printf("0\n"); return 0; }