結果

問題 No.502 階乗を計算するだけ
ユーザー %20%20
提出日時 2017-05-03 20:42:59
言語 cLay
(20240104-1)
結果
CE  
実行時間 -
コード長 103 bytes
コンパイル時間 2,256 ms
コンパイル使用メモリ 161,796 KB
最終ジャッジ日時 2023-09-18 23:11:34
合計ジャッジ時間 4,056 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp:414:53: warning: multi-character character constant [-Wmultichar]
   for(n<1e9+7?x=((int*)"?y���p%`�7O�9M�#")[5-n/' �!�']:0;n%' �!�';){
                                                     ^~~~~~
main.cpp:414:65: warning: multi-character character constant [-Wmultichar]
   for(n<1e9+7?x=((int*)"?y���p%`�7O�9M�#")[5-n/' �!�']:0;n%' �!�';){
                                                                 ^~~~~~
main.cpp: In function ‘int main()’:
main.cpp:414:14: error: operands to ?: have different types ‘mint’ and ‘int’
   for(n<1e9+7?x=((int*)"?y���p%`�7O�9M�#")[5-n/' �!�']:0;n%' �!�';){
       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:414:14: note:   and each type can be converted to the other

ソースコード

diff #

mint x;ll n;{rd(n);for(n<1e9+7?x=((int*)"?yp%`7O9M#")[5-n/'	!']:0;n%'	!';)x*=n--;wt(x);}
0