結果
問題 |
No.976 2 の 128 乗と M
|
ユーザー |
![]() |
提出日時 | 2020-02-01 17:49:22 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 220 bytes |
コンパイル時間 | 288 ms |
コンパイル使用メモリ | 28,544 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-18 20:08:54 |
合計ジャッジ時間 | 1,681 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 50 |
ソースコード
#include <stdio.h> int main(void) { long long int x = 1; long long int m; scanf("%lld", &m); for(int i = 0; i < 128; i++) { x *= 2; x = x%m; } printf("%lld\n", x); return 0; }