結果
問題 | No.138 化石のバージョン |
ユーザー |
|
提出日時 | 2020-03-14 17:00:40 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 237 bytes |
コンパイル時間 | 1,892 ms |
コンパイル使用メモリ | 192,220 KB |
最終ジャッジ日時 | 2025-01-09 06:48:46 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:10:33: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | int a,b,c; scanf("%d.%d.%d",&a,&b,&c); | ~~~~~^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ int x[2]; rep(i,2){ int a,b,c; scanf("%d.%d.%d",&a,&b,&c); x[i]=1000000*a+1000*b+c; } puts(x[0]>=x[1]?"YES":"NO"); return 0; }