Search is not available for this dataset
name
stringlengths
2
112
description
stringlengths
29
13k
source
int64
1
7
difficulty
int64
0
25
solution
stringlengths
7
983k
language
stringclasses
4 values
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M = int(input()) r = 48-M print(r)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M = input() print 48-M
PYTHON
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> using namespace std ; int main(){ int n ; cin >> n ; cout << 48-n << endl ; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); System.out.println( 24-a + 24); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; class Main{ public static void main (String[] args){ Scanner scanner =new Scanner(System.in); int a = scanner.nextInt(); System.out.println(24-a+24); scanner.close(); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <iostream> using namespace std; int main() { int X; cin >> X; cout << 48 - X << endl; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<cstdio> int main() { int a; scanf("%d", &a); printf("%d", 48-a); }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> int main(){ int a; std::cin>>a; std::cout<<48-a<<std::endl; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int M = sc.nextInt(); if(M >= 24){ System.out.println(24-M); }else{ System.out.println(24-M + 24); } } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scn=new Scanner(System.in); int a=scn.nextInt(); System.out.println((24-a)+24); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int M = sc.nextInt(); System.out.println(24 + (24 - M)); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <iostream> using namespace std; int main() { int a; cin>>a; cout<<24-a+24; return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
m=48-int(input()) print(m)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
h=int(input()) print((24-h)+24)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
m = int(input());print(48 - m)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main { public static void main(String[]args) { Scanner sc = new Scanner(System.in); int M = sc.nextInt(); System.out.println(48 - M); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M = input() print(48-int(M))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
A=int(input()) print(48-A)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; public class Main { void solve(){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); System.out.println(48 - n); } public static void main(String[] args){ new Main().solve(); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
m = int(input()) #num = 24-m print(48-m)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M = int(input()) print(24 - M + 24)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<bits/stdc++.h> using namespace std; signed main(){ int a; cin>>a; cout<<24-a+24<<"\n"; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
m = int(input()) print(24 * 2 - m)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int M = sc.nextInt(); System.out.println((24 - M) + 24); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
# -*- coding: utf-8 -*- # 整数の入力 a = int(raw_input()) # 出力 print 48 - a
PYTHON
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <iostream> int main(){ int a; std::cin >> a; std::cout << (48-a) << std::endl; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
m = int(input()) hours = 24 print(24-m+24)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
n = int(input()) print(int(24+(24-n)))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { Scanner sc = new Scanner(System.in); int M = sc.nextInt(); System.out.println(48-M); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println(48 - scanner.nextInt()); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> using namespace std; int main() { int a; cin >> a; cout << 48-a; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main { static public void main(String[] args) { Scanner scan = new Scanner(System.in); int m = scan.nextInt(); scan.close(); System.out.println(24 * 2 - m); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
n = int(input()); print(48 - n);
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
m = int(input()) print(24 - m + 24)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M=((int)(input())) print(str(48-M))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M=int(input()) print(str(24+(24-M)))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
n = int(input()) print(24+24-n)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int m = sc.nextInt(); System.out.println(24 + (24-m)); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <iostream> using namespace std; int n; int main() { cin>>n; cout<<48-n; return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <bits/stdc++.h> using namespace std; int main() { int a; cin>>a; cout<<48-a<<"\n"; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> using namespace std; int main(){ int m; cin>>m; cout<<24-m+24; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); System.out.println(24+(24-n)); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.io.*; class Main { public static void main(String args[]) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int M = Integer.valueOf(in.readLine()).intValue(); System.out.println(48-M); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> using namespace std; int main(){ int a,b; cin >> a; b=48-a; cout << b; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<stdio.h> int main(void) { int m; scanf("%d",&m); printf("%d\n",24+(24-m)); return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
num = int(input()) print(48 - num)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<stdio.h> int main() { int a; scanf("%d",&a); printf("%d\n",24+24-a); }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
a = int(input()) print(24-a+24)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int m = scanner.nextInt(); System.out.println(48 - m); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
print('{}'.format(48-int(input())))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <cstdio> int main() { int M; scanf("%d", &M); printf("%d\n", 24 - M + 24); return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; import static java.lang.System.out; public class Main{ static Scanner sc = new Scanner(System.in); public static void main(String[] args){ // int M = sc.nextInt(); System.out.println(48-sc.nextInt()); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<bits/stdc++.h> using namespace std; int main(){ int m; cin >> m; cout << (48 - m); }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> using namespace std; int main(){ int m; cin>>m; cout<<24+(24-m); }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int M = sc.nextInt(); int time_num=24-M; System.out.println(time_num+24); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.util.List; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); System.out.println(48-a); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int M = sc.nextInt(); System.out.println(48 - M); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int time = 24 + 24 - m; System.out.println(time); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#coding:utf-8 m = int(input()) print(48-m)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
t = input() T = int(t) print(48 - T)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int m = sc.nextInt(); System.out.println(24+24-m); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
# -*- coding: utf-8 -*- import sys m = int(raw_input().split()[0]) sys.stdout.write('%d\n' % (48 - m)) sys.stdout.flush()
PYTHON
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> using namespace std; int m; int main(){ cin >> m; cout << 48 - m << endl; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<bits/stdc++.h> using namespace std; signed main(){ int m; cin >> m; cout << 48-m; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
i = int(input()) print(24*2-i)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
a = input() a = int(a) print(48-a)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> using namespace std; int main(){ int n; cin>>n; cout<<48-n; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; public class Main{ public static void main (String[] args){ Scanner scanner = new Scanner (System.in); int M = scanner.nextInt(); int hour = 24-M; System.out.println(hour+24); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(); System.out.println(48-n); }}
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M=int(input()) print((24-M)+24)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M=input() M=int(M) ans=48-M print(ans)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
print(24 + (24-int(input())))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); int a=sc.nextInt(); System.out.println(48-a); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <cstdio> int M; int main() { scanf("%d",&M); printf("%d\n",48-M); }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int m = sc.nextInt(); sc.close(); System.out.print(48 - m); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
m = int(input()) m = 24 - m print(m + 24)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
a=int(input()) print(24+(24-a))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
n=int(raw_input()) print 48-n
PYTHON
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M = int(input()) print((48 - M))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M = input() N = 48 - int(M) print(N)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; import static java.lang.Math.*; import java.math.BigInteger; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 入力 int n = sc.nextInt(); // 計算 int result = 24 - n + 24; // 出力 System.out.println(result); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M = int(input()) ans = 48 - M print(ans)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M = int(input()) print(str(24+24-M))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <bits/stdc++.h> using namespace std; int main(){ int X; cin >> X; cout << 48-X; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
N = int(input()) print(24+24-N)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
m = int(input()) print(24+(24-m))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> using namespace std; int main(){ int m; cin>>m; printf("%d\n",48-m); }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
a=int(input()) print(48-a)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <iostream> int main(){int m;std::cin>>m;std::cout<<48-m;}
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<cstdio> using namespace std; int n; int main (){ scanf("%d",&n); printf("%d\n",48-n); }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<stdio.h> int main(void) { int n; scanf("%d",&n); printf("%d\n",24+(24-n)); return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { // TODO 自動生成されたメソッド・スタブ Scanner in = new Scanner(System.in); int M = in.nextInt(); System.out.println(48 - M); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; class Main{ static Scanner s=new Scanner(System.in); static int gInt() {return Integer.parseInt(s.next());} static long gLong() {return Long.parseLong(s.next());} public static void main(String[]$){ System.out.println(48-gInt()); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<stdio.h> int main(void) { int m; scanf("%d",&m); printf("%d\n",24-m+24); return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <bits/stdc++.h> using namespace std; int main(){ int in; cin>>in; cout<< 48-in; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<cstdio> int main() { int n,m=24; scanf("%d",&n); m+=24-n; printf("%d",m); return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
a=int(input()) print(24+24-a)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
i=int(input()) print(48-i)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<cstdio> int m; int main() { scanf("%d",&m); printf("%d",24-m+24); return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
m=int(input()) a=24-m print(24+a)
PYTHON3