結果
| 問題 |
No.1476 esreveR dna esreveR
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-16 21:08:50 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 100 bytes |
| コンパイル時間 | 3,905 ms |
| コンパイル使用メモリ | 139,224 KB |
| 最終ジャッジ日時 | 2025-01-20 19:19:00 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<atcoder/all>
| ^~~~~~
main.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
2 | main(){long N;scanf("%ld",&N);printf("%ld",atcoder::pow_mod(6,N/2,998244353));}
| ^~~~
main.cpp: In function ‘int main()’:
main.cpp:2:41: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
2 | main(){long N;scanf("%ld",&N);printf("%ld",atcoder::pow_mod(6,N/2,998244353));}
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long int long long int
| %lld
main.cpp:2:20: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
2 | main(){long N;scanf("%ld",&N);printf("%ld",atcoder::pow_mod(6,N/2,998244353));}
| ~~~~~^~~~~~~~~~
ソースコード
#import<atcoder/all>
main(){long N;scanf("%ld",&N);printf("%ld",atcoder::pow_mod(6,N/2,998244353));}