結果
| 問題 | No.3379 Third Max (C++) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-13 02:58:49 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 111 bytes |
| 記録 | |
| コンパイル時間 | 97 ms |
| コンパイル使用メモリ | 38,400 KB |
| 実行使用メモリ | 5,888 KB |
| スコア | 82 |
| 最終ジャッジ日時 | 2026-07-16 21:29:57 |
| 合計ジャッジ時間 | 4,013 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);}
| ^~~~
ソースコード
#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);}