結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー kuuso1kuuso1
提出日時 2016-03-15 03:41:16
言語 C90
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 236 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 20,864 KB
実行使用メモリ 14,760 KB
最終ジャッジ日時 2024-04-08 13:16:47
合計ジャッジ時間 8,542 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%d",&n);
      |         ^~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
#define ll long long int
int main(){
	int n;
	scanf("%d",&n);
	ll mod=1443855263;
	ll x=234;
	ll i;
	ll t=1;
	for(i=0;i<mod-2;i++){
		t*=x;
		if(t>=mod)t%=mod;
		if(t==1)printf("yes\n");
	}
	printf("0\n");
	return 0;
}
0