結果
問題 | No.181 A↑↑N mod M |
ユーザー | testestest |
提出日時 | 2016-10-25 15:59:12 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 245 bytes |
コンパイル時間 | 196 ms |
コンパイル使用メモリ | 20,864 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-05-03 05:59:50 |
合計ジャッジ時間 | 1,174 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
6,816 KB |
testcase_01 | AC | 1 ms
6,940 KB |
testcase_02 | AC | 0 ms
6,944 KB |
testcase_03 | AC | 0 ms
6,940 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 1 ms
6,940 KB |
testcase_07 | AC | 1 ms
6,944 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 1 ms
6,940 KB |
testcase_17 | WA | - |
testcase_18 | AC | 0 ms
6,940 KB |
testcase_19 | AC | 1 ms
6,940 KB |
testcase_20 | AC | 0 ms
6,940 KB |
testcase_21 | AC | 1 ms
6,944 KB |
testcase_22 | AC | 1 ms
6,940 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 0 ms
6,944 KB |
testcase_28 | WA | - |
testcase_29 | AC | 1 ms
6,940 KB |
testcase_30 | AC | 0 ms
6,944 KB |
testcase_31 | AC | 0 ms
6,944 KB |
testcase_32 | AC | 0 ms
6,940 KB |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | WA | - |
testcase_41 | WA | - |
testcase_42 | WA | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | s,i;p(m){i=1;for(s=m;m/++i;)for(s-=m%i?0:s/i;m%i<1;m/=i);}r;g(a,n,m){for(r=1;n;n/=2)n&1?r=r*a%m:0,a=a*a%m;}f(a,n,m){return~-m?n?g(a%m,--n?n-2|a-2?n-1?p(m),s+f(a,n,s):a:4:1,m),r:1:0;}n,m;main(a){scanf("%d%d%d",&a,&n,&m);n=!printf("%d",f(a,n,m));} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 1 | s,i;p(m){i=1;for(s=m;m/++i;)for(s-=m%i?0:s/i;m%i<1;m/=i);}r;g(a,n,m){for(r=1;n;n/=2)n&1?r=r*a%m:0,a=a*a%m;}f(a,n,m){return~-m?n?g(a%m,--n?n-2|a-2?n-1?p(m),s+f(a,n,s):a:4:1,m),r:1:0;}n,m;main(a){scanf("%d%d%d",&a,&n,&m);n=!printf("%d",f(a,n,m));} | ^ main.c:1:5: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | s,i;p(m){i=1;for(s=m;m/++i;)for(s-=m%i?0:s/i;m%i<1;m/=i);}r;g(a,n,m){for(r=1;n;n/=2)n&1?r=r*a%m:0,a=a*a%m;}f(a,n,m){return~-m?n?g(a%m,--n?n-2|a-2?n-1?p(m),s+f(a,n,s):a:4:1,m),r:1:0;}n,m;main(a){scanf("%d%d%d",&a,&n,&m);n=!printf("%d",f(a,n,m));} | ^ main.c: In function ‘p’: main.c:1:5: warning: type of ‘m’ defaults to ‘int’ [-Wimplicit-int] main.c: At top level: main.c:1:59: warning: data definition has no type or storage class 1 | s,i;p(m){i=1;for(s=m;m/++i;)for(s-=m%i?0:s/i;m%i<1;m/=i);}r;g(a,n,m){for(r=1;n;n/=2)n&1?r=r*a%m:0,a=a*a%m;}f(a,n,m){return~-m?n?g(a%m,--n?n-2|a-2?n-1?p(m),s+f(a,n,s):a:4:1,m),r:1:0;}n,m;main(a){scanf("%d%d%d",&a,&n,&m);n=!printf("%d",f(a,n,m));} | ^ main.c:1:59: warning: type defaults to ‘int’ in declaration of ‘r’ [-Wimplicit-int] main.c:1:61: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | s,i;p(m){i=1;for(s=m;m/++i;)for(s-=m%i?0:s/i;m%i<1;m/=i);}r;g(a,n,m){for(r=1;n;n/=2)n&1?r=r*a%m:0,a=a*a%m;}f(a,n,m){return~-m?n?g(a%m,--n?n-2|a-2?n-1?p(m),s+f(a,n,s):a:4:1,m),r:1:0;}n,m;main(a)
ソースコード
s,i;p(m){i=1;for(s=m;m/++i;)for(s-=m%i?0:s/i;m%i<1;m/=i);}r;g(a,n,m){for(r=1;n;n/=2)n&1?r=r*a%m:0,a=a*a%m;}f(a,n,m){return~-m?n?g(a%m,--n?n-2|a-2?n-1?p(m),s+f(a,n,s):a:4:1,m),r:1:0;}n,m;main(a){scanf("%d%d%d",&a,&n,&m);n=!printf("%d",f(a,n,m));}