結果
問題 | No.9005 実行時間/使用メモリテスト(テスト用) |
ユーザー | kuuso1 |
提出日時 | 2016-03-15 03:29:18 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 1 ms / 3,000 ms |
コード長 | 216 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 6,676 KB |
最終ジャッジ日時 | 2024-04-08 13:16:14 |
合計ジャッジ時間 | 576 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,676 KB |
testcase_01 | AC | 0 ms
6,676 KB |
testcase_02 | AC | 0 ms
6,676 KB |
testcase_03 | AC | 0 ms
6,676 KB |
testcase_04 | AC | 1 ms
6,676 KB |
コンパイルメッセージ
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); | ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> #define ll long long int int main(){ int n; scanf("%d",&n); //ll mod=(ll)1e9+7; ll mod=(ll)1e9+7; ll x=3; ll i; for(i=0;i<mod;i++){ x*=3; if(x>=mod)x%=mod; } printf("0\n"); return 0; }