結果
問題 |
No.1883 SLASH
|
ユーザー |
|
提出日時 | 2022-03-30 23:19:19 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 133 bytes |
コンパイル時間 | 1,880 ms |
コンパイル使用メモリ | 192,112 KB |
最終ジャッジ日時 | 2025-01-28 13:25:39 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import"bits/stdc++.h" | ^~~~~~ main.cpp:2:30: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 2 | using namespace std;string s;main(){cin>>s;cout<<*max_element(begin(s),end(s))-*min_element(begin(s),end(s));} | ^~~~
ソースコード
#import"bits/stdc++.h" using namespace std;string s;main(){cin>>s;cout<<*max_element(begin(s),end(s))-*min_element(begin(s),end(s));}