結果

問題 No.3379 Third Max (C++)
コンテスト
ユーザー 259-Momone
提出日時 2025-11-13 02:44:46
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 107 bytes
コンパイル時間 450 ms
コンパイル使用メモリ 67,084 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-11-22 12:30:48
合計ジャッジ時間 2,072 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
main.cpp:2:10: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    2 | long a,b;main(){while(std::cin>>b)a+=1<<4*b;b=0;while(a/=10)b+=a/15%16>2;std::cout<<1+b;}
      |          ^~~~

ソースコード

diff #
raw source code

#import<iostream>
long a,b;main(){while(std::cin>>b)a+=1<<4*b;b=0;while(a/=10)b+=a/15%16>2;std::cout<<1+b;}
0