結果

問題 No.502 階乗を計算するだけ
コンテスト
ユーザー %20
提出日時 2017-05-03 20:42:59
言語 cLay
(20250308-1 + boost 1.89.0)
コンパイル:
clayc _filename_
実行:
./a.out
結果
CE  
実行時間 -
コード長 103 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,101 ms
コンパイル使用メモリ 178,948 KB
最終ジャッジ日時 2026-03-26 19:51:55
合計ジャッジ時間 2,673 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp:414:53: warning: multi-character character constant [-Wmultichar]
  414 |   for(n<1e9+7?x=((int*)"?y���p%`�7O�9M�#")[5-n/'   �!�']:0;n%'     �!�';){
      |                                                     ^~~~~~~~
main.cpp:414:67: warning: multi-character character constant [-Wmultichar]
  414 |   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’
  414 |   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 #
raw source code

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