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
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // input int M = sc.nextInt(); int remaining = 48 - M; System.out.println(remaining); } }
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
S=int(input()) print(24+(24-S))
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 n; scanf("%d",&n); printf("%d",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
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 + 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
import java.util.*; import static java.lang.System.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); A(sc); } public static void A(Scanner sc) { int m = sc.nextInt(); 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
#include<bits/stdc++.h> using namespace std; int main(void){ int m; 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
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
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; int main() { int x; cin>>x; cout<<24-x+24<<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; 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
print((24-int(input()))+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
#084 A N =int(input()) print(24 * 2 -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 sys import os def main(): N = input() hour_ = 24 - N hour = 24 + hour_ print hour if __name__ == '__main__': main()
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
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int ans = 48 - m; System.out.println(ans); } }
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( 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 ans = (24 - m) + 24; System.out.println(ans); } }
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
#New Year 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
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
# -*- coding: utf-8 -*- # 整数の入力 a = int(raw_input()) print str(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
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ 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 <iostream> using namespace std; int main() { int m; cin>>m; cout<<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<stdio.h> int main(void) { int M; scanf("%d", &M); printf("%d", 48 - 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
#include <bits/stdc++.h> int main(){ int n; std::cin>>n; std::cout<<24+24-n<<std::endl; 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.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
print-input()+48
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 <bits/stdc++.h> int main() { int m; std::cin >> m; std::cout << 48 - m << 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
#include <iostream> using namespace std; int main() { int M; cin >> M; cout << 24 - M +24<< 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
x = int(input()) print(24+24-x)
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\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
#include <iostream> int main(){ int a; std::cin >> a; std::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
M = int(input()) x = 24 - M + 24 print(x)
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 * 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.*; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int ans = 48-m; System.out.println(ans); } }
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 scanner = new Scanner(System.in); int M = scanner.nextInt(); System.out.println(48 - M); 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
#084_A print(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
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((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
print 48-input()
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()) m=abs(m-24) 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
#include <iostream> using namespace std; int main() { int n; cin>>n; cout << 24-n+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
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int m = sc.nextInt(); m = 24+24-m; System.out.println(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(); 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() M=int(M) x=48-M print(x)
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; import java.util.Arrays; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); 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
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan =new Scanner(System.in); int m=Integer.parseInt(scan.next()); System.out.print(48-m); } } // end
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 = Integer.parseInt(sc.next()); 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
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int ans = 24 + (24-m); System.out.println(ans); } }
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.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); System.out.print(48-x); } }
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,s; scanf("%d",&m); s=48-m; printf("%d\n",s); 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 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 N; scanf("%d", &N); printf("%d\n", 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
import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int n = 24 + (24 - m); System.out.println(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
#include <bits/stdc++.h> using namespace std; int main() { int s; cin>>s; cout <<48-s<< 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 <iostream> using namespace std; int main (){ int M; cin>>M; cout<<48-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
m = int(input()) ans = 24-m + 24 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
#include<bits/stdc++.h> using namespace std; int main(void) { 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
m = int(input()) n = 48 - 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
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a; cout<<24*2-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 <stdio.h> int main() { int m; scanf("%d", &m); printf("%d\n", 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
M = int(input()) T = (24 - M) + 24 print(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
n = int(input()) print((24 - n) + 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
print 48 - eval(raw_input())
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 <cstdio> using namespace std; int main(){ int M; 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
#include<bits/stdc++.h> using namespace std; int x; int main(){ 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
M = int(input()) ans = 24-M+24 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()) ans=24+(24-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
h = int(input()) print(24 + (24 - h))
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 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
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
x = int(input()) print(24 + (24 - x))
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 scan=new Scanner(System.in); int m=scan.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
# ABC084A 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
nancy = int(input()) print (24-nancy+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.*; // ARC 86-D // https://beta.atcoder.jp/contests/arc086/tasks/arc086_b public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int M = in.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 <bits/stdc++.h> 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.*; import java.util.Collections; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(48 - sc.nextInt()); sc.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(void){ int m;cin>>m; cout<<48-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
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner cd = new Scanner(System.in); int x = 48-cd.nextInt(); cd.close(); System.out.println(x); } }
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(int((24-n)+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.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner scanner=new Scanner(System.in); int time=scanner.nextInt(); System.out.println(48-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
#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; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int m = scan.nextInt(); int t = 24 - m + 24; System.out.println(t); } }
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 y; cin>>y; cout<<48-y; 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.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan=new Scanner(System.in); int a=scan.nextInt(); System.out.println(24+(24-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
m=int(input()) x=24+(24-m) print(x)
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 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.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); 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
a=int(input()) b=24-a c=24+b print(c)
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
# New Year print(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
w=int(input()) print(24+24-w)
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; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Integer time = sc.nextInt(); System.out.println((24 - time) + 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
m = int(input()) x = 48 - m print(x)
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()) a=24-n print(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
#84a 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.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc= new Scanner(System.in); int a = Integer.parseInt(sc.next()); 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> using namespace std; int main(){ int m; 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
m=int(input()) m=48-m 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
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner stdIn=new Scanner(System.in); int m=stdIn.nextInt(); 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
print(abs(24-int(input()))+24)
PYTHON3