[백준] 3046번 : R2 - Dart(다트)

강재원·2022년 9월 7일
0

[코딩테스트] Dart

목록 보기
16/100



https://www.acmicpc.net/problem/3046

import 'dart:io';
void main(){
    String? sc=stdin.readLineSync();
    final v=sc!.split(' ').map<int>((o)=>int.parse(o));
    var r=v.elementAt(0);
    var s=v.elementAt(1);
    print(2*s-r);
}
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글