結果

問題 No.793 うし数列 2
ユーザー C. S.
提出日時 2019-03-14 13:41:01
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 182 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 28,928 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-26 08:47:12
合計ジャッジ時間 4,098 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 3 WA * 5 TLE * 1 -- * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main()
{
	unsigned long long n;
	scanf("%llu", &n);

	int r = 1;
	for(int i=0; i<n; i++){
		r = (10 * r + 3) % 1000000007;
	}
	printf("%d\n", r);
	return 0;
}
0