結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2021-10-27 23:35:27 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 400 bytes |
| コンパイル時間 | 4,414 ms |
| コンパイル使用メモリ | 251,576 KB |
| 最終ジャッジ日時 | 2025-01-25 07:52:32 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:14:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
14 | scanf("%d.%d.%d",&a[i][0],&a[i][1],&a[i][2]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using mint = modint1000000007;
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000000000000000
int main(){
vector<array<int,3>> a(2);
rep(i,2){
scanf("%d.%d.%d",&a[i][0],&a[i][1],&a[i][2]);
}
if(a[1]<=a[0])cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
沙耶花