結果

問題 No.138 化石のバージョン
ユーザー Pachicobue
提出日時 2017-10-25 00:14:22
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 473 bytes
コンパイル時間 514 ms
コンパイル使用メモリ 63,588 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-21 17:57:30
合計ジャッジ時間 1,552 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main()
{
int old=0;
for(int i = 0; i < 5; i++){
char c;
cin >> c;
if(i == 0){
old += (c-'0')*40000;
} else if(i == 2){
old += (c-'0')*200;
} else if(i == 4){
old += (c-'0');
}
}
int now=0;
for(int i = 0; i < 5; i++){
char c;
cin >> c;
if(i == 0){
now += (c-'0')*40000;
} else if(i == 2){
now += (c-'0')*200;
} else if(i == 4){
now += (c-'0');
}
}
if(now <= old){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
return 0;
}
0