結果
問題 | No.138 化石のバージョン |
ユーザー |
|
提出日時 | 2022-04-24 01:16:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 788 bytes |
コンパイル時間 | 2,081 ms |
コンパイル使用メモリ | 187,204 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-25 10:30:11 |
合計ジャッジ時間 | 3,301 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 8 |
コンパイルメッセージ
main.cpp:9:12: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts' 9 | void print(auto a){ | ^~~~ main.cpp:13:13: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts' 13 | void prints(auto a){ | ^~~~ main.cpp:21:13: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts' 21 | void printl(auto a){ | ^~~~
ソースコード
//Normal#define _GLIBCXX_DEBUG#define ll long long#include <bits/stdc++.h>using namespace std;using Graph = vector<vector<int>>;void print(auto a){cout << a;}void prints(auto a){cout << a << " ";}void prints(){cout << " ";}void printl(auto a){cout << a << endl;}void printl(){cout << endl;}void fix(int n){cout << fixed << setprecision(n);}int main(){string S, T; cin >> S >> T;int A0, B0, C0, A1, B1, C1;A0 = (int)S[0];B0 = (int)S[2];C0 = (int)S[4];A1 = (int)T[0];B1 = (int)T[2];C1 = (int)T[4];bool flag = false;if(A0 > A1) flag = true;else if(A0 == A1){if(B0 > B1) flag = true;else if(B0 == B1){if(C0 >= C1) flag = true;}}flag ? printl("YES") : printl("NO");return 0;}