結果
問題 | No.138 化石のバージョン |
ユーザー |
![]() |
提出日時 | 2015-04-30 21:57:49 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 1,472 ms |
コンパイル使用メモリ | 160,916 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 13:12:28 |
合計ジャッジ時間 | 2,720 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:7:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d.%d.%d",&a,&b,&c); | ~~~~~^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ vector<int>V[2]; for(int i=0;i<2;i++){ int a,b,c; scanf("%d.%d.%d",&a,&b,&c); V[i].push_back(a); V[i].push_back(b); V[i].push_back(c); } if(V[0]>=V[1])puts("YES"); else puts("NO"); return 0; }