結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー kuuso1kuuso1
提出日時 2016-03-15 03:36:51
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 21,248 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2024-04-08 13:16:22
合計ジャッジ時間 7,465 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
    4 |         printf("%d\n",sizeof(ll));
      |                 ~^    ~~~~~~~~~~
      |                  |    |
      |                  int  long unsigned int
      |                 %ld
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |         scanf("%d",&n);
      |         ^~~~~~~~~~~~~~

ソースコード

diff #

#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;
}
0