結果
| 問題 |
No.3379 Third Max (C++)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-13 02:58:49 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 111 bytes |
| コンパイル時間 | 174 ms |
| コンパイル使用メモリ | 28,416 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-11-22 12:30:51 |
| 合計ジャッジ時間 | 1,521 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 11 WA * 4 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<cstdio>
| ^~~~~~
main.cpp:2:10: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
2 | long a,b;main(){while(~scanf("%d",&b))a+=1<<4*b;b=1;while(a/=16)b+=a/15%16>2;printf("%d\n",b);}
| ^~~~
main.cpp: In function ‘int main()’:
main.cpp:2:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
2 | long a,b;main(){while(~scanf("%d",&b))a+=1<<4*b;b=1;while(a/=16)b+=a/15%16>2;printf("%d\n",b);}
| ~^ ~~
| | |
| | long int*
| int*
| %ld
main.cpp:2:87: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
2 | long a,b;main(){while(~scanf("%d",&b))a+=1<<4*b;b=1;while(a/=16)b+=a/15%16>2;printf("%d\n",b);}
| ~^ ~
| | |
| int long int
| %ld
ソースコード
#import<cstdio>
long a,b;main(){while(~scanf("%d",&b))a+=1<<4*b;b=1;while(a/=16)b+=a/15%16>2;printf("%d\n",b);}